From: SourceForge.net <no...@so...> - 2005-02-24 13:01:43
|
Bugs item #1150892, was opened at 2005-02-24 18:00 Message generated for change (Settings changed) made by infidel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1150892&group_id=2435 Category: None Group: None >Status: Deleted >Resolution: Duplicate Priority: 5 Submitted By: SecCat (shoy_bspal) Assigned to: Nobody/Anonymous (nobody) Summary: fail to link unicode routines Initial Comment: Hi all! ------------------------------------------------------------------------------ OS: WindowsXP SP1 MinGW: MinGW-3.2.0-rc-3 //here comes my code: #include <iostream> #include <wchar.h> #include <wctype.h> using namespace std; int main() { wctype(""); wctrans(""); towctrans (2, 0); towctrans (1, 0); towlower(1); return 0; } #and my makefile: bugtest : g++ main.cpp -o main.exe -D_UNICODE - DUNICODE clean : -rm *.exe -rm *.*~ -rm *~ ------------------------------------------------------------------------------ run make, then I have got this: g++ main.cpp -o main.exe -D_UNICODE -DUNICODE D:\DOCUME~1\SHOY\LOCALS~1\Temp/ccULbaaa.o (.text+0x132):main.cpp: undefined reference to `wctype' D:\DOCUME~1\SHOY\LOCALS~1\Temp/ccULbaaa.o (.text+0x13e):main.cpp: undefined reference to `wctrans' D:\DOCUME~1\SHOY\LOCALS~1\Temp/ccULbaaa.o (.text+0x152):main.cpp: undefined reference to `towctrans' D:\DOCUME~1\SHOY\LOCALS~1\Temp/ccULbaaa.o (.text+0x166):main.cpp: undefined reference to `towctrans' collect2: ld returned 1 exit status make: *** [bugtest] Error 1 --------------------------------------------------------------------------------- what's going on? and I've try these on linux, everything is OK, is this a bug or something? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1150892&group_id=2435 |