From: Luke D. <cod...@ho...> - 2003-07-31 01:16:32
|
Please give sample source code that reproduces this problem (preferably as small as possible). Also, since you are actually using the Cygwin compiler this problem might not apply to MinGW GCC, and if that is the case then you will need to report this to a Cygwin mailing list. Luke ----- Original Message ----- From: "Sam Steingold" <sd...@gn...> To: <min...@li...> Sent: Thursday, July 31, 2003 1:51 AM Subject: [Mingw-users] Re: SetEnvironmentVariableA & getenv > Earnie & Paul, thanks for your explanations. > I will stick with getenv() and environ. > > unfortunately, I cannot link with g++ when using environ: > > g++ -mno-cygwin -I/usr/local/libsigsegv-mingw/include -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wno-sign-compare -falign-function s=4 -D_WIN32 -g -DDEBUG_OS_ERROR -DDEBUG_SPVW -DSAFETY=3 -DDEBUG_GCSAFETY -D NO_TYPECODES -DCINTERFACE -DUNICODE -DDYNAMIC_FFI -DNO_GETTEXT -I. -x none spvw.o spvwtabf.o spvwtabs.o spvwtabo.o eval.o control.o encoding.o pathname.o stream.o socket.o io.o array.o hashtabl.o list.o package.o record.o sequence.o charstrg.o debug.o error.o misc.o time.o predtype.o symbol.o lisparit.o i18n.o foreign.o win32aux.o ari80386.o modules.o libcharset.a libavcall.a libcallback.a -lncurses -luser32 -lws2_32 -lole32 -luuid -L/usr/local/libsi gsegv-mingw/lib -lsigsegv -o lisp.exe > > misc.o(.text+0x1186): In function `Z9C_get_envv': > /cygdrive/d/gnu/clisp/current/build-g-gxx-mingw/misc.d:274: undefined reference to `__p__environ()' > misc.o(.text+0x166c): In function `Z12clisp_setenvPKcS0_': > /cygdrive/d/gnu/clisp/current/build-g-gxx-mingw/misc.d:335: undefined reference to `__p__environ()' > misc.o(.text+0x1711):/cygdrive/d/gnu/clisp/current/build-g-gxx-mingw/misc.d: 356: undefined reference to `__p__environ()' > misc.o(.text+0x17cf):/cygdrive/d/gnu/clisp/current/build-g-gxx-mingw/misc.d: 366: undefined reference to `__p__environ()' > make: *** [lisp.exe] Error 1 > > linking with gcc works just fine. > > comments? > > -- > Sam Steingold (http://www.podval.org/~sds) running w2k > <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> > <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> > MS Windows: error: the operation completed successfully. |