forum.alglib.net

ALGLIB forum
It is currently Sat May 04, 2024 7:41 am

All times are UTC


Forum rules


1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: LNK1561 in the "release configuration" for Visual Studio 6 (
PostPosted: Wed Jun 01, 2011 6:25 pm 
Offline

Joined: Wed Jun 01, 2011 6:11 pm
Posts: 1
I am getting LNK1561 in the "release configuration" for Visual Studio 6 (C++); it worked fine in the "debug configuration".

Some sites suggest using the /c option for this problem, but we already do this.

Some sites suggesting definig a "Main" function to overcome this problem. However, we didn't define a "Main" for the debug configuration and the program worked correctly. We typically do not define "Main" in our software.

Does anyone have any insight into compiler settings or other ways of overcoming this problem?

Thanks in advance,
Sincerely,

Joseph Marks
Senior Software Engineer


Top
 Profile  
 
 Post subject: Re: LNK1561 in the "release configuration" for Visual Studio
PostPosted: Wed Jun 01, 2011 7:01 pm 
Offline
Site Admin

Joined: Fri May 07, 2010 7:06 am
Posts: 907
Have you got this error while trying to compile examples from ALGLIB Reference Manual?

LNK1561 tells that there is no entry point (i.e. main() function). ALGLIB does not need entry point and it does not define main() function. Thus LNK1561 have nothing to do with ALGLIB. But it can be somehow connected with examples because they include implementation of the main() function. MSVC has quite obscure conventions about main() function - sometimes it is main(), sometimes it is _tmain(), sometimes it has no arguments, sometimes it must have several arguments.

If you want to compile examples, you can create brand new console project in the MSVC and use its declaration of main() - just copy first row with all its arguments, compiler-specific macros, etc. to the example source.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group