Euphoria
Ticket #672:
dll creation broken on Windows
-
Reported by
SDPringle
Jun 08, 2011
I saw this in the forums. This really should be fixed before release of 4.0.4.
-- This what testdll.e contains
public procedure show()
puts(1,"Hello World !\n")
if getc(0) then end if
end procedure
-- THIS IS THE ERROR I GET !
-- USING XP HOME EDITION OPEN WATCOM 1.9
C:\WORKAREA>euc -wat -dll testdll.e -o testdll.dll
Build directory: build-414501\
Translating code, pass: 1 2 3 generating
Compiling with Watcom
Compiling 12% init-.c
Compiling 50% testdll.c
Compiling 75% main-.c
Linking 100% ..\testdll.dll
Error! E3138: file testdll.lnk: line(6): invalid filename 'C:\'
Unable to link C:\WORKAREA\testdll.dll
Status: 1 Command: wlink @testdll.lnk
C:\WORKAREA>
Details
1. Comment by ne1uno
Jun 09, 2011
the original poster commented they have a path with a '#' hash that could have confused watcom link file creation.
coincidentally, I have a different error building on windows when I tried to compile the simple dll from the bug report on the forum.
main-.c(76): Error! E1051: Not expecting a return value for function 'EuInit'
Couldn't compile file 'main-.c'
using -keep and looking at main-.c
void EuInit() { ... return 0; } should be just return; or maybe int EuInit()
}}}
2. Comment by mattlewis
Jun 10, 2011
@ne1uno: That's a 4.1 issue. I've created ticket:674 for that issue.
3. Comment by SDPringle
Jul 12, 2011
I can produce this problem without hash marks in my filepath.
4. Comment by SDPringle
Jul 12, 2011
This is fixed in change set 1f136c2188ca