Page 2 of 2

Re: Segment Limit of 0xFFFFFFFF

Posted: Sat Sep 05, 2009 11:53 am
by neon
Not sure why this one persists. I think I'll just have a C function that will then call start (nevermind I just get an unresolved external on that. Oh well lol.
Hello,

Do you get the unresolved external error on the C function when you performed the above? Or, was it still the NASM function that you called from your C function? Insure that, in the entry point property in your project properties window does NOT include the symbols underscore. ie, if the C function is main(), it should be listed under Linker->Advanced->EntryPoint as just main. Note no underscore nor parenthesis ().

Also, those are indeed GCC specific. To set those options in MSVC:

1. Project Settings->C/C++->Code Generation, set Buffer Security Check to Disabled (you will need this.)
2. C/C++->Preprocessor->Ignore Standard Include Path: Yes (/X)
2. Linker->Input->Ignore All Default Libraries: Yes (/NODEFAULTLIB)
3. Linker->Input->Additional Dependencies: $(NOINHERIT)

Re: Segment Limit of 0xFFFFFFFF

Posted: Sat Sep 05, 2009 12:06 pm
by oib111
I already have all of those set, and I didn't include the underscore when I set the entry point.

Re: Segment Limit of 0xFFFFFFFF

Posted: Sat Sep 05, 2009 12:13 pm
by neon
Hello,

That is fine - I sort of figured they were already set. I will be needing the above questions in my post answered in order to continue assisting you myself.

Re: Segment Limit of 0xFFFFFFFF

Posted: Sat Sep 05, 2009 1:01 pm
by Creature
oib111 wrote:Aren't those GCC options? I'm using Visual Studio?
You're right, my fault. But usually the VC++ compiler has the same switches but with other names. The point I was trying to make is still: Did you forgot to add some of the necessary flags?
neon wrote:Also, those are indeed GCC specific. To set those options in MSVC:
Thanks for listing the VC++ versions :P.

Re: Segment Limit of 0xFFFFFFFF

Posted: Sat Sep 05, 2009 2:29 pm
by neon
Creature wrote:Thanks for listing the VC++ versions :P.
No problem ;)