Re: [Dev-C++] Undefined reference to wctype()...
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Tim S. <ti...@we...> - 2004-06-02 11:10:59
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Siva, Siva Chandra wrote: | Here again it compiles fine but the linker gives two | undefined reference errors: | | 1. undefined reference to 'wctype' | 2. undefined reference to 'btowc' | Do I have to link some other libraries while I | compile? | If yes, which ones? yes, you need to link against 'libmsvcr70.a', just adding -lmsvcr70 to the linker flags schould be also ok. Just a small hint: If you have some undefined references, this is mostly because you have forgotten to link against something. You can solve this by grepping through your lib directy. For Example you want to find in which file the btowc function resides: 1. Open a command prompt (Under winnt-systems Start->run->cmd) 2. Change to your lib dirrectory (Its in your Dev-Cpp directory) 3. grep after your string, in our example you have to do 'grep btowc *' (If you don't have grep you can obtain it from http://gnuwin32.sourceforge.net/packages/grep.htm) Then all files which contains this string are listed. This method doesn't help all the time, but in most cases you'll find a ~ appropriate lib to link against. HTH Tim - -- http://we-are-the-b.org/~tim/borg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAvbVxsMXChvH2qP0RAsLKAJ97prpsKhfw1xkCXE3ILeQfIg5eJACdH/NM 0gN5MkOLrja0xwK0nIRLJUw= =tb7Q -----END PGP SIGNATURE----- |