Jump to content
  • Advertisement
Sign in to follow this  
DinGY

ClanLib error

This topic is 4900 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!