Adding a custom entry point using visual studio 2008

Started by
2 comments, last by Enerjak 10 years, 5 months ago

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.

Advertisement

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.

I usually just drop it in "programically"
#pragma comment(linker, "/ENTRY:\"myEntryPoint\"")
reducing exe size:
http://www.catch22.net/tuts/reducing-executable-size
http://thelegendofrandom.com/blog/archives/2231

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

This topic is closed to new replies.

Advertisement