Page 1 of 1
weird compiling errors[fixed]
Posted: Fri Dec 19, 2008 9:44 am
by PixelP
hey everyone, ive been formating my hardrives and now im trying to compile my project again but i get weird compiling errors...
Code: Select all
||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized|
D:\SDL\lib\sdlmain.lib(.\Release\SDL_win32_main.obj):C:\public_cvs\SDL-:(.text[_main]+0x55)||undefined reference to `__alloca_probe'|
16]+0x162)||undefined reference to `__alloca_probe'|
16]+0x1a5)||undefined reference to `__alloca_probe'|
||=== Build finished: 3 errors, 1 warnings ===|
i use sdl with sdl_gfx and lua.
does anyone understand this?
Re: weird compiling errors
Posted: Fri Dec 19, 2008 12:09 pm
by dandymcgee
Is everything located in the same directory as it was before, including drive letters (ie. C:\, D:\)? If so errors like that beat me :P
Re: weird compiling errors
Posted: Fri Dec 19, 2008 1:26 pm
by PixelP
no, i dont think so.
Re: weird compiling errors
Posted: Fri Dec 19, 2008 1:37 pm
by cypher1554R
I'm not sure, but I can tell that something is messed up with your libs.
Make sure that:
- headers and lib files are from the exact same package
- your lib paths are setup correctly
- you linked them to project correctly.
Re: weird compiling errors
Posted: Fri Dec 19, 2008 2:27 pm
by Falco Girgis
Are you using the same compiler as before?
I had huge issues with trying to get SDL and Lua to not do each other in the ass when I upgraded to a newer version of Visual Studio.
Re: weird compiling errors
Posted: Fri Dec 19, 2008 3:09 pm
by PixelP
cypher1554R wrote:I'm not sure, but I can tell that something is messed up with your libs.
Make sure that:
- headers and lib files are from the exact same package
- your lib paths are setup correctly
- you linked them to project correctly.
ill download the libs and headers again.
GyroVorbis wrote:Are you using the same compiler as before?
I had huge issues with trying to get SDL and Lua to not do each other in the ass when I upgraded to a newer version of Visual Studio.
yup, ive got the same compiler.
Re: weird compiling errors
Posted: Fri Dec 19, 2008 3:49 pm
by qpHalcy0n
That's a 16bit version of an x86 assembly function call which checks for stack allocations over 4k. (Such as entry points to functions).
This basically amounts to the fact that SDL or another lib was built against a different target than what you're attempting to link it under.
This is probably due to usage of managed code built under an unmanaged code environment, or vise versa.
It was especially a problem with the migration of code built under VC6 to .NET compliant compilers (VS2003+).
I'd look first to make sure that you aren't ignoring the default C libs.
ProjectSettings->Linker->Input: be sure that "Ignore all Default Libs:" is set to "no"
If this does not work you may have to include libc (single threaded std c lib) or libcmt(same, except multithreaded) explicitly or they may have been removed from project settings. So you can add them directly to the project for input linkage or do it in code w/ the pragma directive. For debug versions append a 'd' to the lib name. If they're already added, you may have to "ignore specific library": ignore libc.lib and instead add libcp.lib explicitly.
// Example
#ifdef _DEBUG
#pragma comment(lib, "libcpd.lib")
#else
#pragma commend(lib, "libcp.lib")
#endif
Re: weird compiling errors
Posted: Fri Dec 19, 2008 3:55 pm
by dandymcgee
Yeah, I would recommend the same, make sure all the headers and libs are in the correct folders in the compiler's directories (lib, bin, include, etc.)
Re: weird compiling errors
Posted: Fri Dec 19, 2008 5:19 pm
by PixelP
i had fucked up the files, some were missing, now its fixed.