weird compiling errors[fixed]

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
PixelP
Chaos Rift Regular
Chaos Rift Regular
Posts: 153
Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:

weird compiling errors[fixed]

Post 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?
Last edited by PixelP on Fri Dec 19, 2008 5:20 pm, edited 1 time in total.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: weird compiling errors

Post 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
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
PixelP
Chaos Rift Regular
Chaos Rift Regular
Posts: 153
Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:

Re: weird compiling errors

Post by PixelP »

no, i dont think so.
User avatar
cypher1554R
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1124
Joined: Sun Jun 22, 2008 5:06 pm

Re: weird compiling errors

Post 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.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: weird compiling errors

Post 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.
User avatar
PixelP
Chaos Rift Regular
Chaos Rift Regular
Posts: 153
Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:

Re: weird compiling errors

Post 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.
qpHalcy0n
Respected Programmer
Respected Programmer
Posts: 387
Joined: Fri Dec 19, 2008 3:33 pm
Location: Dallas
Contact:

Re: weird compiling errors

Post 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
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: weird compiling errors

Post 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.)
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
PixelP
Chaos Rift Regular
Chaos Rift Regular
Posts: 153
Joined: Tue Oct 07, 2008 12:23 pm
Programming Language of Choice: c/c++
Location: sweden
Contact:

Re: weird compiling errors

Post by PixelP »

i had fucked up the files, some were missing, now its fixed.
Post Reply