Problem compiling cpp programs with gcc-3.2-1

2002-10-28 Thread Mark Schoenberg
ace gcc with g++, but the compiled program bombs immediately. Is there a simple fix other than using gcc-2.95.3-5 instead of 3.2-1? Thank you, Mark Schoenberg - /* Program simp.cpp*/ #include int WINAPI WinMain (H

Re: Problem compiling cpp programs with gcc-3.2-1

2002-10-28 Thread Mark Schoenberg
Dear Danny, Thank you for your rapid and thorough reply. Here is the slighly more sophisticated program which just pops up a window and exits upon IDCANCEL. The compilation output to the command gcc -O2 -mno-cygwin -mwindows short.cpp \ -lkernel32 -luser32 -lgdi32 -lwinspool \ -lcomdlg32 -l

Re: Problem compiling cpp programs with gcc-3.2-1

2002-10-28 Thread Mark Schoenberg
Dear Danny, From your analysis of the problem I presented, I concluded that including the libstdc++.a library when compiling cpp programs with gcc-3.2-1, might solve the problem. I tried this and can now report the following. The command gcc -O2 -mno-cygwin -mwindows short.cpp \ -lkernel3