Mail Archives: cygwin/2001/11/21/00:20:44
Hello,
Hope this mailing list is the most relevant for non cygwin coding stuff.
Apologies if this is not the case.
Ignore the use of certain library names, this really is a cygwin / gcc
question honest.
I'm trying to staticaly link serveral libraries through gcc, which I've
built myself. i.e. wx-windows, stl-port etc. I can build executables which
use each of the libraries inderpendently, but together they simply core dump
after a 2 second pause. The code is fine as I've compiled it under linux. I
assume I'm linking everything together incorrectly.
One thing I did notice however was when I removed the includes for the STL
lib when building my example and left the link line the same. It was fine.
This made me think that the old stl was being used for building the
wx-windows lib and causing problems when I linked in the new STL lib. But
the wx-windows docs claim that no stl libs are used! AHHHHG?!!
I've visited the usual faqs for the libraries and cygwin faq's etc, but
still to no avail. I was sure the the linker needed to passed additional
parameters.
Now as I said before this works perfectly under linux. Below is the compile
line, the link line and my configuration. If any one could give me some help
the would certainly be a few beesr in it.... if you live in england of
course ;)
Thanks
J.
Oh and I did try -Wl,--subsystem,windows - but still no use.
g++ -g -DCOMPILE_DASSERT -DWIN32 -DWIN32 -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER
=0x0
400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DSTRICT -D__WXMSW__ -D__WINDOWS
__ -
I/home/Administrator/develop/dependencies/STLport/stlport -I/home/Administra
tor/
develop/dependencies/portaudio/pa_common -I/home/Administrator/develop/depen
denc
ies/wx2/include -I/home/Administrator/develop/anthrax/src -Wall -c -o
main.
o main.cpp
gcc
main.o -mwindows -Wl,-e_mainCRTStartup -L/home/Administrator/develop/depende
ncies/STLport/lib -L/home/Administrator/develop/dependencies/portaudio/lib -
L/ho
me/Administrator/develop/dependencies/wx2/lib -lstlport_gcc -lportaudio -lw
inmm
-lwx -ljpeg -ltiff -lxpm -lpng -lzlib -lstdc++ -lgcc -lwinspool -lshell32 -
lcom
ctl32 -lctl3d32 -lodbc32 -ladvapi32 -lole32 -loleaut32 -luuid -lodbc32 -lws
ock3
2 -lopengl32 -lglu32 -o gui.exe
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Nov 21 05:19:02 2001
WinNT Ver 5.0 build 2195
Path: /usr/local/bin
/usr/bin
/bin
.
/cygdrive/i/Perl/bin
/cygdrive/i/WINNT/system32
/cygdrive/i/WINNT
/cygdrive/i/WINNT/System32/Wbem
/cygdrive/i/Program Files/Network Associates/PGPNT
/cygdrive/i/Program Files/Microsoft Visual Studio/Common/Tools/WinNT
/cygdrive/i/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
/cygdrive/i/Program Files/Microsoft Visual Studio/Common/Tools
/cygdrive/i/Program Files/Microsoft Visual Studio/VC98/bin
SysDir: I:\WINNT\System32
WinDir: I:\WINNT
PWD = `/home/Administrator/develop/anthrax/src/testbeds/gui'
USER = `Administrator'
MAKE_MODE = `UNIX'
HOME = `/home/Administrator'
Use `-r' to scan registry
a: fd N/A N/A
c: hd FAT32 1996Mb 39% CP UN WIN98FAT32
d: cd N/A N/A
f: hd NTFS 58635Mb 19% CP CS UN PA FC ARCHNTFS
g: cd CDFS 617Mb 100% CS UN 010515_1736
h: cd N/A N/A
i: hd NTFS 8746Mb 91% CP CS UN PA FC Win2kNTFS
I:\cygwin\bin /usr/bin system binmode
I:\cygwin\lib /usr/lib system binmode
I:\cygwin / system binmode
c: /cygdrive/c user binmode,noumount
f: /cygdrive/f user binmode,noumount
g: /cygdrive/g user binmode,noumount
i: /cygdrive/i user binmode,noumount
Found: I:\cygwin\bin\bash.exe
Found: I:\cygwin\bin\cat.exe
Found: I:\cygwin\bin\cpp.exe
Found: I:\cygwin\bin\find.exe
Found: I:\cygwin\bin\gcc.exe
Found: I:\cygwin\bin\gdb.exe
Found: I:\cygwin\bin\ld.exe
Found: I:\cygwin\bin\ls.exe
Found: I:\cygwin\bin\make.exe
Found: i:\Program Files\Microsoft Visual Studio\VC98\bin\make.exe
Found: I:\cygwin\bin\sh.exe
56k 2000/12/03 I:\cygwin\bin\cygbz21.0.dll
45k 2001/04/25 I:\cygwin\bin\cygform5.dll
34k 2001/09/30 I:\cygwin\bin\cygform6.dll
18k 2000/10/23 I:\cygwin\bin\cyggdbm.dll
17k 2001/06/28 I:\cygwin\bin\cyghistory4.dll
21k 2001/06/28 I:\cygwin\bin\cyghistory5.dll
21k 2001/06/20 I:\cygwin\bin\cygintl.dll
81k 2000/12/05 I:\cygwin\bin\cygitcl30.dll
35k 2000/12/05 I:\cygwin\bin\cygitk30.dll
45k 2001/07/04 I:\cygwin\bin\cygjbig1.dll
119k 2001/06/06 I:\cygwin\bin\cygjpeg6b.dll
26k 2001/04/25 I:\cygwin\bin\cygmenu5.dll
19k 2001/09/30 I:\cygwin\bin\cygmenu6.dll
156k 2001/04/25 I:\cygwin\bin\cygncurses++5.dll
175k 2001/09/30 I:\cygwin\bin\cygncurses++6.dll
226k 2001/04/25 I:\cygwin\bin\cygncurses5.dll
201k 2001/09/30 I:\cygwin\bin\cygncurses6.dll
15k 2001/04/25 I:\cygwin\bin\cygpanel5.dll
12k 2001/09/30 I:\cygwin\bin\cygpanel6.dll
163k 2001/05/06 I:\cygwin\bin\cygpng2.dll
108k 2001/06/28 I:\cygwin\bin\cygreadline4.dll
135k 2001/06/28 I:\cygwin\bin\cygreadline5.dll
390k 2000/12/05 I:\cygwin\bin\cygtcl80.dll
5k 2000/12/05 I:\cygwin\bin\cygtclpip80.dll
10k 2000/12/05 I:\cygwin\bin\cygtclreg80.dll
245k 2001/06/12 I:\cygwin\bin\cygtiff3.dll
623k 2000/12/05 I:\cygwin\bin\cygtk80.dll
41k 2001/07/04 I:\cygwin\bin\cygXpm-noX4.dll
45k 2001/07/04 I:\cygwin\bin\cygXpm-X4.dll
49k 2001/02/03 I:\cygwin\bin\cygz.dll
701k 2001/09/13 I:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
dll major: 1003
dll minor: 3
dll epoch: 19
dll bad signal mask: 19005
dll old termios: 5
dll malloc env: 28
api major: 0
api minor: 46
shared data: 3
dll identifier: cygwin1
mount registry: 2
cygnus registry name: Cygnus Solutions
cygwin registry name: Cygwin
program options name: Program Options
cygwin mount registry name: mounts v2
cygdrive flags: cygdrive flags
cygdrive prefix: cygdrive prefix
cygdrive default prefix:
build date: Wed Sep 12 23:54:31 EDT 2001
shared id: cygwin1S3
I'm also using:
wx-windows 2.2.7 (www.wxwindows.org)
stl-port 4.5 (www.stlport.com)
--
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/
- Raw text -