This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building dlls with cygwin


Hallo Dylan,

Am Sonntag, 30. Juni 2002 um 11:49 schriebst du:

> Hi there,

> I have tried making a dll in the way you describe, however I get the errors
> below.

> Have you seen similar errors to this in your library creation?  Am I making
> a simple mistake here?

undefined reference to `std::....

You must link against the relevant importlibs.  Here libstdc++

Means:
gcc -shared -Wl,--out-implib=common.dll.a -o common.dll *.o \
-Wl,--export-all-symbols -lstdc++

For libstdc++ this is done automatically if you use g++:
g++ -shared -Wl,--out-implib=common.dll.a -o common.dll *.o \
-Wl,--export-all-symbols


Gerrit
-- 
"All faults& bugs are mine - Robert"
    from squid/acinclude.m4,   Sun Apr 21 05:21:21 2002


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]