Undefined reference to 'L795' making a DLL

Carlos carlos@canama.net
Mon Feb 23 17:30:00 GMT 2004


Hi all:

I'm newbie to cygwin, and I try to compile an application that works 
fine in Linux.

Then problem is when I try to make a library with only one object file.

g++ -shared 
-Wl,-soname,libCanamaQ.dll.1,--out-impl=../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/libCanamaQ.a 
\
-L/usr/local/lib 
../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/cpCanama.o 
-lomniORB4 -lomnithread -o 
../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/libCanamaQ.dll.1.2
Creating library file: 
../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/libCanamaQ.a
../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/cpCanama.o(.text+0x40a5):cpCanama.cc: 
undefined reference to `L795'
../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/cpCanama.o(.text+0x4934):cpCanama.cc: 
undefined reference to `L1192'
../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/cpCanama.o(.text+0x4fa2):cpCanama.cc: 
undefined reference to `L1390'
collect2: ld returned 1 exit status
make: *** 
[../../../compilaciones/qalomehf/cliente/1.2.0/normal/produccion/libCanamaQ.dll] 
Error 1

Now if I do:

$ cd /
$ find . -exec nm --line-number {} \; | less

I can see the symbols of all libraries, but I can't see the symbols 
L795, L1192 and L1290

Where can these symbols be from?

I attach cygcheck -srv output.


The rest of the application compiles fine and other two libraries link fine.

TIA.
-- 



Carlos

Canamá Panal
www.canama.net

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck-srv.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040223/4f6db164/attachment.ksh>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list