[Dev-C++] Latest MSYS can't compile program that links to static Library
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Napoleon A. <n_a...@ya...> - 2002-11-26 20:08:42
|
Hello,
I use DevC++ with a seperate installation Mingw and Msys. I just
downloaded and updated my Msys installation to the latest release
candidate MSYS-1.0.8-rc-3.exe. But when I tried to compile an old
working program I had the following errors:
-------------------------------------------------------------------
Compiler: Default compiler
Building Makefile: "C:\Projects\PortCalk\Makefile.win"
Executing make...
make.exe -f "C:\Projects\PortCalk\Makefile.win" all
g++.exe -c Commander.cpp -o Commander.o -I"C:/MinGW/include"
-I"C:/Dev-Cpp/Include" -I"C:/MinGW/include/c++" -I"C:/MinGW/include"
-I"C:/Dev-Cpp/Include" -I"C:/Projects/WinLib" -D_WIN32_IE=0x0300
-DSTRICT -s -mwindows
In file included from Commander.cpp:1:
Commander.h:4:17: Cmd.h: No such file or directory
Commander.h:5:20: Window.h: No such file or directory
In file included from Commander.cpp:1:
Commander.h:11: parse error before `::' token
Commander.h:13: missing ';' before right brace
Commander.h:14: semicolon missing after declaration of `Commander'
Commander.h:14: two or more data types in declaration of
`Program_About'
Commander.h:15: syntax error before `::' token
Commander.h:17: syntax error before `::' token
Commander.h:19: syntax error before `::' token
Commander.h:21: syntax error before `::' token
Commander.h:23: syntax error before `::' token
Commander.h:26: `_calc' declared as reference but not initialized
Commander.h:27: parse error before `}' token
Commander.h:29: syntax error before `::' token
Commander.h:33: syntax error before `[' token
In file included from c:/mingw/include/c++/3.2/string:46,
from Serial.h:4,
from SymTab.h:4,
from Calc.h:4,
from Commander.cpp:3:
c:/mingw/include/c++/3.2/bits/stringfwd.h:51: `char_traits' is not a
template
c:/mingw/include/c++/3.2/bits/stringfwd.h:59: parse error before `<'
token
c:/mingw/include/c++/3.2/bits/stringfwd.h:63: syntax error before `;'
token
c:/mingw/include/c++/3.2/bits/stringfwd.h:64: syntax error before `;'
token
c:/mingw/lib/gcc-lib/mingw32/3.2/include/stddef.h:149: confused by
earlier errors, bailing out
make.exe: *** [Commander.o] Error 1
Execution terminated
-------------------------------------------------------------------
I reverted to my old version MSYS-1.0.8-2002.09.07-1.exe and it
compiled OK. The program in question links to a static Library that i
created in C:\Programs\WinLib. The latest release candidate of MSYS
works fine for all my programs that don't link to my static library.
Can anyone please let me know what is going on and how to sort it out.
Napoleon.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|