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: Just a suggestion: SWIG probably needs recompilation!?


> after installation of the newest cygwin release I cannot make a small
> swig-program example which worked before.
>
> I am not sure what of the many reinstalled cygwin components is
responsible
> for that, but I suppose that you test it and recompile it in the case of
> need.
>
> Here is the error message:
>
> g++ -g -DPC  -L/dokus/schnoerr/local/Libs -lSmartPtr
> -L/hd/schnoerr/local/Instal
> ls/Programmierung/Shells/cygwin/lib/python2.2/config -lpython2.2
> TestClass.o
> -o TestClass
>
/bin/../lib/gcc-lib/i686-pc-cygwin/3.2/../../../libcygwin.a(libcmain.o)(.tex
> t+0x7c): undefined reference to `_WinMain at 16'
> collect2: ld returned 1 exit status

Cockpit error. Try this test again with the following g++ comand:

$ g++ -g -DPC TestClass.o -o testClass -L/dokus/schnoerr/local/Libs \
> -L/hd/schnoerr/local/Installs/Programmierung/Shells/cygwin/lib/python2.2/c
onfig \
> -lSmartPtr -lpython2.2

You need to make sure that the libraries are linked in at the end of the gxx
command.


Regards,

Elfyn McBratney
elfyn at exposure dot org dot uk
www.exposure.org.uk





--
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]