Thread overview
No Start Address
Oct 14, 2004
bayo
Oct 14, 2004
Scott Michel
Oct 14, 2004
bayo
Re: No Start Address (Last)
Oct 14, 2004
bayo
Oct 14, 2004
Walter
October 14, 2004
Hello,

i use dmc to link a project.

i use SDL.lib and and opengl32.lib

dmc -oProject.exe {all my obj file} SDL.lib opengl32.lib

optlink say to me this warning,
"OPTLINK : Warning 134: No Start Address"
and when i run the binary file resulting
it crash.

please, is any body can explain to me the problem
and his solution :)

PS: i use SDL.lib and opengl32.lib from a dmd project what compile and run proprelly.

thanks a lot.


October 14, 2004
bayo wrote:
> Hello,
> 
> i use dmc to link a project.
> 
> i use SDL.lib and and opengl32.lib
> 
> dmc -oProject.exe {all my obj file} SDL.lib opengl32.lib
> 
> optlink say to me this warning,
> "OPTLINK : Warning 134: No Start Address"
> and when i run the binary file resulting
> it crash.
> 
> please, is any body can explain to me the problem
> and his solution :)

Dude, what time zone are you in? Apparently one different enough from the rest of us that you needed to post the same problem three times because no one got up and responded to your question immediately?

You are missing a main() function. Very simple solution: provide a main().
October 14, 2004
"bayo" <bayo_member@pathlink.com> wrote in message news:ckm27m$2hhi$1@digitaldaemon.com...
> i use dmc to link a project.
>
> i use SDL.lib and and opengl32.lib
>
> dmc -oProject.exe {all my obj file} SDL.lib opengl32.lib
>
> optlink say to me this warning,
> "OPTLINK : Warning 134: No Start Address"
> and when i run the binary file resulting
> it crash.
>
> please, is any body can explain to me the problem
> and his solution :)


See www.digitalmars.com/ctg/OptlinkErrorMessages.html#no_start_address


October 14, 2004
>Dude, what time zone are you in? Apparently one different enough from the rest of us that you needed to post the same problem three times because no one got up and responded to your question immediately?

Yes, when i post something, i can't see my message ... i must wait
a lot of time : ).
That's why i'v posted the same thing 3 time. Sorry :?
I had'nt to do it next time.

>You are missing a main() function. Very simple solution: provide a main().

i test a lot of code, and now i know were is the problem, but i don't understand !

#include <stdio.h>
//#include <SDL.h>
int main(int argc, char *argv[]) {
printf("OK\n");
return 0;
}

If i uncomment #include <SDL.h>
i v got OPTLINK : Warning 134: No Start Address.
Can it be a wrong include file ?
but if i comment, build is Ok.

if any one ...

PS: SDL -> libsdl.org

thanks a lot.


October 14, 2004
when i use SDL.h ...


..

#if defined(WIN32) || defined(_WIN32) || \
(defined(__MWERKS__) && !defined(__BEOS__)) || \
defined(macintosh) || defined(__APPLE__) || \
defined(__SYMBIAN32__) || defined(QWS)

..

#define main	SDL_main

..


that's why i v got problem,
Sorry for the disturbance :D,
and thanks for your helping.