Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error LNK1561 help!

Status
Not open for further replies.

tru178

Technical User
Dec 8, 2001
6
US
I'm using microsoft visual c++ 6.0 and I'm getting this error.

"LINK : fatal error LNK1561: entry point must be defined"

I've check other websites that suggested that I remove the last \ in the directory to the lib file. Still gives me the same error. Anyone know how can i fix this?
 
Open your project settings:
from main menu,
"Project" -> "Settings..."

In the "Project Settings" dialog,
1. Select your projrct folder.
2. Select C/C++ tab.
3. In "Category" dropdown list box, select "General",
4. In "Project Options" edit box, make sure you have an entry '/c' in it. If not add one.

HTH
Shyan

 
Depending on tyour program type you have to have a function in your program or dll called main, WinMAin, DllMain
If you want to use antoher function name you have to use /ENTRY: option of the linker.

Also read more on the '/ENTRY' topic from MSDN.

HTH,
s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top