Saturday, 24 August 2013

VS2012 fails to resolve printf,

VS2012 fails to resolve printf,

I've just reinstalled VS2012, when trying to compile a simple "hello
world" it failed to find the most basic functions, I've tried going
through linking options or compiler options for c++ looking for nostd or
some similar option from GCC but failed to do so
can anyone hint me what am I missing ? this is obviously a configuration
problem I can't seem to resolve
1>------ Build started: Project: test, Configuration: Debug Win32 ------
1>Build started 8/24/2013 1:52:58 PM.
1>InitializeBuildStatus:
1> Touching "Debug\test.unsuccessfulbuild".
1>ClCompile:
1> test.cpp
1>LINK : warning LNK4044: unrecognized option '/map(filename)'; ignored
1>test.obj : error LNK2019: unresolved external symbol __imp__printf
referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp
referenced in function _main
1>test.obj : error LNK2001: unresolved external symbol __RTC_InitBase
1>test.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>C:\_projects\code\c\test\Debug\test.exe : fatal error LNK1120: 5
unresolved externals
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.47
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

No comments:

Post a Comment