forum.alglib.net http://forum.alglib.net/ |
|
LNK1561 in the "release configuration" for Visual Studio 6 ( http://forum.alglib.net/viewtopic.php?f=2&t=373 |
Page 1 of 1 |
Author: | josephamarks [ Wed Jun 01, 2011 6:25 pm ] |
Post subject: | LNK1561 in the "release configuration" for Visual Studio 6 ( |
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 |
Author: | Sergey.Bochkanov [ Wed Jun 01, 2011 7:01 pm ] |
Post subject: | Re: LNK1561 in the "release configuration" for Visual Studio |
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. |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |