| Author |
Message |
< Advanced Erlang/OTP ~ C linking problem for sample port driver |
| Per |
Posted: Sun Feb 17, 2008 2:05 am |
|
|
|
Joined: 17 Feb 2008
Posts: 1
|
I am trying to compile the sample sync port driver included in the src dist, using Eclipse/CDT/cygwin on Windows.
I get this linking error:
**** Build of configuration Release for project ErlDecoder ****
make all
Building file: ../src/ErlDecoder.cpp
Invoking: Cygwin C++ Compiler
g++ -I"C:\Program Files\erl5.6\lib\erl_interface-3.5.5.3\include" -I"C:\Program Files\erl5.6\erts-5.6\include" -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/ErlDecoder.d" -MT"src/ErlDecoder.d" -o"src/ErlDecoder.o" "../src/ErlDecoder.cpp"
Finished building: ../src/ErlDecoder.cpp
Building target: ErlDecoder.dll
Invoking: Cygwin C++ Linker
g++ -L"C:\Program Files\erl5.6\lib\erl_interface-3.5.5.3\lib" -L"C:\Program Files\erl5.6\erts-5.6\lib" -shared -o"ErlDecoder.dll" ./src/ErlDecoder.o -lei -lerl_interface -lerts_MT
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized
./src/ErlDecoder.o:ErlDecoder.cpp:(.text+0x1f): undefined reference to `_driver_alloc'
./src/ErlDecoder.o:ErlDecoder.cpp:(.text+0x35): undefined reference to `_set_port_control_flags'
./src/ErlDecoder.o:ErlDecoder.cpp:(.text+0xb6): undefined reference to `_driver_alloc_binary'
./src/ErlDecoder.o:ErlDecoder.cpp:(.text+0xed): undefined reference to `_driver_free'
./src/ErlDecoder.o:ErlDecoder.cpp:(.text+0x117): undefined reference to `_driver_alloc'
collect2: ld returned 1 exit status
make: *** [ErlDecoder.dll] Error 1
I've tried various settings but I fail to pass. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|