Then I have set the Codeblocks to works with MS Visual C++ .NET 2003 compiler (free Toolkit) as default and set the necessary pathes. Anyway, where I have to set the bin pathes? In .NET there is an "Executables" folder where you can add bin pathes, but for CodeBlocks :?? Is may be the "resources" folder?C::B looks for executables either in "bin" subdirectory of Compiler's installation directory or any of "Extra paths". Both can be set under "Settings->Compiler->Programs".
(1) Some projects compile only under "release", but give a link error(s) under "debug". Strange Confused.Do they require resource compiler? If yes, don't forget there's no resource compiler in basic VC Toolkit 2003 bundle, you have to install Platform SDK to get one. (you will have to add Extra path to Platform SDK's "bin" directory or copy 'rc.exe' into VC Toolkit's "bin")
(2) Some projects refuse to compile in both "debug" and "release" (e.g., DLL). Mostly due to link errors.
Under release they compile just fine, but under debug they refuse to compile (link error(s). And quite strange one(s)).Could you post these errors, please?
After adding the resource directory (which point to the C:\Programme\Microsoft Visual C++ Toolkit 2003\bin where the RC.Exe is)It doesn't seem to be related to your problem, but - it should point to Platform SDK "include" path.
Concerning the "Chat Example Server" Project, the funny thing is that I do not have a Example src file (.c or .cpp), but just a "Chat Example Server.cpp".
I´m still having the problem:
error LNK2019: unresolved external symbol __ftol2
I´ve proved to put the next lines of code in my c file:
#if (_MSC_VER >= 1300) && (WINVER < 0x0500)
//VC7 or later, building with pre-VC7 runtime libraries
extern "C" long _ftol( double ); //defined by VC6 C libs
extern "C" long _ftol2( double dblSource ) { return _ftol( dblSource ); }
#endif
but now the problem is the string "C", it isn´t recognized by the compiler maybe. I´ve installed the microsotf c++ 2003 toolkit.
I don´t understand.
#if (_MSC_VER >= 1300) && (WINVER < 0x0500)
#ifdef __cplusplus
extern "C" {
#endif
//VC7 or later, building with pre-VC7 runtime libraries
long _ftol( double ); //defined by VC6 C libs
long _ftol2( double dblSource ) { return _ftol( dblSource ); }
#ifdef __cplusplus
} // extern "C"
#endif
#endif
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C
#endif // __cplusplus
#if (_MSC_VER >= 1300) && (WINVER < 0x0500)
//VC7 or later, building with pre-VC7 runtime libraries
EXTERN_C long _ftol( double ); //defined by VC6 C libs
EXTERN_C long _ftol2( double dblSource ) { return _ftol( dblSource ); }
#endif
...The problem continues... :try linking with
CCFD.obj : error LNK2001: unresolved external symbol __ftol@8
MF2KGMG.obj : error LNK2001: unresolved external symbol __ftol2
SOLVERS.obj : error LNK2001: unresolved external symbol __ftol2
msvcrt.lib