Adding a custom entry point using visual studio 2008

Recommended Posts

Enerjak    277

So, I've noticed in the Advanced property page under linker that I can specify my own entry point....this intrigues me. I tried to make my own but got this error:

1>LINK : error LNK2001: unresolved external symbol _/ENTRY:flash


and this is what I'm putting in the Entry Point property page:

http://puu.sh/52BUJ.png

Let me know what I can do to fix this.

Share on other sites
frob    44908

Most likely, remove "/ENTRY:" from your string.  Since the box is labeled "Entry point" it is probably adding that prefix for you.  You can verify it by looking at the actual command line parameters that will be used, which I believe is on the "Command Line" page.

I'm guessing right now the linker is being given this command:  "/ENTRY:_/ENTRY:flash"  Remove the duplicate prefix and it should be fine.

Share on other sites
Enerjak    277

Thanks, I forgot about this post til now, GODSPEED, Doctor

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account