|
From: SourceForge.net <no...@so...> - 2005-06-16 15:54:10
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3204889 By: frankos_is_back Hi, Im trying to compile a MSVC (Windows) and GCC(Linux) application in Windows using gcc. Please corect me if im wrong: Installed MinGW and changed scons scripts, g++ seems to work fine, its version is 3.4.2 (mingw-special) and I can compile hello world programs. Ive been having a headache by getting strange errors in header files like stl_construct.h and stl_list.h files when trying to compile the application. Tried to compile hello world program by including the stl_construct.h header via include <vector>.and everything works fine. The "problematic" header files are in the mingw dir, not cygwin. Small sample of the error -> ............... from /usr/lib/gcc/i686-pc-wingw32/3.4.4/include/c++/ctime:51, from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/cwchar:51, from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/postypes.h:46, from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/iosfwd:50, from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_algobase.h:70, from /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/vector:67, from nucodaProjects/postCode/main/main.cpp:3: /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h: In function `void std::_Destroy(_ForwardIterator, _ForwardIterator)': /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:147: error: expected nested-name-specifier before "iterator_traits" /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:147: error: expected init-declarator before '<' token /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:147: error: expected `,' or `;' before '<' token /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:149: error: `_Value_type' undeclared (first use this function) /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:149: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:149: error: template argument 1 is invalid /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:149: error: `has_trivial_destructor' does not name a type /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:152: error: there are no arguments to `_Has_trivial_destructor' that depend on a t emplate parameter, so a declaration of `_Has_trivial_destructor' must be available /usr/lib/gcc/i686-pc-mingw32/3.4.4/include/c++/bits/stl_construct.h:152: error: (if you use `-fpermissive', G++ will accept your code, but allowing th e use of an undeclared name is deprecated) Anybody thinks it might be easier to use cross compiling and compile the whole thing in linux??? Thanks a 1.000.000 ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |