I tried reading INSTALL and got to the make -f gcc.mak clean install, and that got all done nicely, and then I made my makefile like
Code:
LIBPATH = -L"c:/development/dev/lib" \
-L"c:/development/dev/lib/gcc/mingw32/3.4.2" \
-L"c:/development/stlport-5.1.0/lib"
LIBS = -luser32 -lkernel32 -lgdi32 -lws2_32 -lstlport
OBJS = test.o util.o socketry.def socketry.o
LDFLAGS = -Wl --subsystem,windows $(LIBPATH) $(LIBS)
INCLUDES = -I "c:/development/stlport-5.1.0/stlport"
CXXFLAGS = -c -Wall $(INCLUDES)
all: test
test: $(OBJS)
$(CC) $(OBJS) -o test.exe $(LDFLAGS)
And I still get errors like
Code:
g++ -c -Wall -I "c:/development/stlport-5.1.0/stlport" socketry.cpp
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h: In instantiation of `std::basic_ios<TCHAR, std::char_traits<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:60: instantiated from `std::basic_istream<TCHAR, std::char_traits<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:706: instantiated from `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/basic_ios.h:67: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream: In instantiation of `std::basic_istream<TCHAR, std::char_traits<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:706: instantiated from `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:65: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/istream.tcc:847: error: no type named `pos_type' in `class std::basic_istream<TCHAR, std::char_traits<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/istream.tcc:865: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream: In instantiation of `std::basic_ostream<TCHAR, std::char_traits<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:706: instantiated from `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/ostream:64: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/ostream.tcc:404: error: no type named `pos_type' in `class std::basic_ostream<TCHAR, std::char_traits<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/ostream.tcc:420: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream: In instantiation of `std::basic_iostream<TCHAR, std::char_traits<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:538: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/istream:713: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream: In instantiation of `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >':
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:547: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf: In instantiation of `std::basic_streambuf<TCHAR, std::char_traits<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:64: instantiated from `std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:561: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:135: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:234: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:239: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:574: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/streambuf:586: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream: In instantiation of `std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:561: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:73: error: no type named `pos_type' in `struct std::char_traits<wchar_t>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc: In instantiation of `std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >':
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/sstream:561: instantiated from `std::basic_stringstream<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t> >'
socketry.cpp:20: instantiated from here
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc:136: error: no type named `pos_type' in `class std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t>
>'
C:/Development/Dev/bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/sstream.tcc:182: error: no type named `pos_type' in `class std::basic_stringbuf<TCHAR, std::char_traits<wchar_t>, std::allocator<wchar_t>
>'
The -pthreads flag was unrecognized by g++.