Recently code was added to the SVN version of Sirrf to regulate this behaviour. By default Sirrf MSVC projects only display a console when build as a debug build. At least, that is the expected behaviour. See if building a debug build helps.christianclavet wrote: Right now I can't use the console when I build the application or I get this linker error:1>LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
#pragma comment(lib, "foo.lib") is a Microsoft extension and thus isn't a cross-platform solution.christianclavet wrote: For the dependancy, I found out about it. FuzzYspo0N use a method I'm not used to:
He put the information directly in the project settings for having the libs in the linker editor option.
I'm doing it like this:
In the code I put this (dependancies.h)With this I don't have to check the project setting to specify library dependancy. (Would be useful to at least do it this way for the Angelscrip library, since it could be removed from the compilation.Code: Select all
// Irrlicht #include <irrlicht.h> #pragma comment(lib, "Irrlicht.lib")
I've done it this way in dependancies.hCode: Select all
// Angelscript #ifdef __COMPILE_WITH_ANGELSCRIPT__ #include <angelscript.h> #pragma comment(lib, "angelscript.lib") #endif
I've seen these errors and warnings before. FuzzYspo0N actually reported them when building his MSVC build. I thought we had fixed them. Are you using the latest SVN revision (81)?christianclavet wrote: For the error and warnings:
sirrf project - 15 error(s), 12 warning(s)
Here are some basic descriptions:
Warning: asGameState.cpp -> Line 82 convert from irr:f32 to asDword possible loss of data
Warnings in IRRlicht includes?! (vector3d.h, with asVector3d.cpp)
Warnings in IRRlicht includes?! (line2d.h with asLine2d.cpp)
Warnings in IRRlicht includes?! (dimension2d.h with asAabbox3d.cpp)
Detail is: conversion from 'irr:: F32' to 'const irr:: s32' possible loss of data.
Error c2668 'fabs' in IRRlicht includes?! (aabbox3d.h with (VS9 includes)math.h and asAabbox3d.cpp):
Detail: ambiguous call to overloaded function