- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fehler1error LNK2001: Nicht
aufgelstes externes Symbol "_mainCRTStartup".D:\\FTN-Tests\\wing
test\\Wing2\\LINKLAST2
Fehler2error LNK1120: 1 nicht aufgelste externe
Verweise.D:\\FTN-Tests\\wing
test\\Wing2\\Debug\\LAST2.exeLAST2
Sorry for the german installation ;-)
It says unresolved external links.
It seems there someting wrong with the installation but I am not sure.
Everything worked fine before.
May there is someone who has an idea?
Cheers,
Alex
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It appears that a number of object files, none of which contained a compiled Fortran main program, were given to the linker.
You may also check the files in the project and do a "clean and rebuild".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems there someting wrong with the installation but I am not sure. Everything worked fine before.
May there is someone who has an idea?..
Hi Alex,
This is a linker error and it is not clear for me how it could be related to the update you've done. Here are
some details about startup functions:
Console Win32application uses 'main' entry-function - EntryPointSymbolis'mainCRTStartup' function
GUI Win32 applicationuses 'WinMain' entry-function - EntryPointSymbol is 'WinMainCRTStartup' function
Entry Point Symbols are defined in Project Settings in 'Linker -> Advanced -> Entry Point'.
I would also look at a Character Set option, that is aUNICODE or MBCS, because I had a similar problem in the past.
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi steve,
i'm usingIntel Visual Fortran Composer XE 2011 Update 9 Integration for Microsoft Visual Studio* 2008, 12.1.3526.2008 on a 64bit Win7 pc
the actual error messages i got after i clicked 'rebuild solution' as following:
-----------
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
LINK : LNK2001: unresolved external symbol _mainCRTStartup
fatal error LNK1120: 1 unresolved externals
-----------
i had no problem build and run the program before with the linker setting for /stack till i encountered this error few days ago (ihave a feeling the project config properties i changed may cause the errors)
by the way, should I choose the compiler selection Platform to 'x64' or 'Win32' underTools -> Options -> under Intel Visual Fortran -> Compilers" ?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The errors you're getting suggest that no files are being compiled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe I know how to fix this. Follow the instructions in the fourth bullet of Step 1 in this article. Let me know if that works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the program.I do not recommend going over 100MB for this, even on x64...
Steve,
Ona 32-bitWindows platformfor some test-cases I useeven higher values for STACK linker option and
they work ( It doesn't matter thatthese values for a C/C++ applcation ):
...
// Case 1
//#pragma comment( linker, "/HEAP:1069547520,1069547520" )
//#pragma comment( linker, "/STACK:4194304,4194304" )
// Case 2
//#pragma comment( linker, "/HEAP:536870912,536870912" )
//#pragma comment( linker, "/STACK:536870912,536870912" )
// Case 3
//#pragma comment( linker, "/HEAP:268435456,268435456" )
//#pragma comment( linker, "/STACK:268435456,268435456" )
// Case 4
//#pragma comment( linker, "/HEAP:134217728,134217728" )
//#pragma comment( linker, "/STACK:134217728,134217728" )
...
Best regards,
Sergey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Windows limits the stack to 1GB, even on 64-bit systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In some cases this is simply impossible:
- Case #1: When an applicationneeds to create more than256 threads (with TBB, for example )
- Case #2: Recursive algorithms ( QuickSort on huge arrays orStrassen's matrix multiplication, for example)
However, I have one case that is "in line" with your point of view: on avery compactembedded platforms
with limited memory resources a significantstack increaseis problematic.
Best regards,
Sergey

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page