On Sunday 07 May 2006 19:10, jpff@codemist.co.uk wrote: > Adding -lgdi32 means that the first compilation crashed with multiply > defined symbols, like atexit and similar stuff defined in crt0.c > > I need to be able to build most stuff; actually I can build without > fltk and without python, but as soon as fltk is involved I get linking > errors. I could revert to my original makefile, but the other > problems will remain. I do not know if this is of some help, but here is how I link against FLTK in my Win32 makefile (I could not get SCons to work with MinGW so far, and I prefer to compile on Linux): # this one is used for linking a program $(CXX) -O2 -o $@ $^ $(LDFLAGS) $(FLTK_LIBS) $(CSLIB_LNK) $(LIBS) # and this one is for widgets.dll $(CXX) -O2 -shared -o $@ $^ $(LDFLAGS) $(FLTK_LIBS) $(LIBS) where the variables are defined as follows: CXX = wine D:/MinGW/bin/g++ CSLIB_LNK = -lcsound32 # or -lcsound64 if USE_DOUBLE LDFLAGS = -L. LIBS = D:/MinGW/bin/libsndfile-1.dll -lgdi32 -luser32 -lkernel32 -lm FLTK_LIBS = -Wl,--enable-runtime-pseudo-reloc D:/MinGW/lib/fltk.dll -lstdc++ FLTK_LIBS += -lole32 -luuid -lwsock32 fltk.dll (version 1.1.7, compiled with --enable-threads) is included with this package: http://csound.sourceforge.net/csound5gui.zip ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net