ClanLib error

Started by
-1 comments, last by DinGY 18 years, 11 months ago
today, i try to learn ClanLib, i decide to make very simple Application using ClanLib, but it alway error. here my code main.h

#include <ClanLib/core.h>
#include <ClanLib/application.h>
#include <ClanLib/display.h>
#include <ClanLib/gl.h>

class SimpleTest : public CL_ClanApplication
{
	public:
		virtual int main( int, char** );
};


main.cpp

#include "main.h"

SimpleTest::main(int argc, char **argv)
{

	CL_SetupCore::init();
	CL_SetupDisplay::init();
	CL_SetupGL::init();

	CL_DisplayWindow window("Hello World", 640, 480);

	CL_SetupCore::deinit();
	CL_SetupDisplay::deinit();
	CL_SetupGL::deinit();

	return 0;

}

SimpleTest app;


and i got these errors
Quote: learn error LNK2005: ___endstdio already defined in LIBCD.lib(_file.obj) learn error LNK2005: ___initmbctable already defined in LIBCD.lib(mbctype.obj) learn error LNK2005: ___initstdio already defined in LIBCD.lib(_file.obj) learn error LNK2005: ___iob_func already defined in LIBCD.lib(_file.obj) learn error LNK2005: __cflush already defined in LIBCD.lib(_file.obj) learn error LNK2005: __dosmaperr already defined in LIBCD.lib(dosmap.obj) learn error LNK2005: __getmbcp already defined in LIBCD.lib(mbctype.obj) learn error LNK2005: __iob already defined in LIBCD.lib(_file.obj) learn error LNK2005: __isctype already defined in LIBCD.lib(isctype.obj) learn error LNK2005: __setmbcp already defined in LIBCD.lib(mbctype.obj) learn error LNK2005: __tolower already defined in LIBCD.lib(tolower.obj) learn error LNK2005: _getenv already defined in LIBCD.lib(getenv.obj) learn error LNK2005: _tolower already defined in LIBCD.lib(tolower.obj) learn fatal error LNK1169: one or more multiply defined symbols found learn warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
DinGY
Yesterday is history.Tomorrow is a mystery. Today is a gift"

This topic is closed to new replies.

Advertisement