- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a mixed code C++ and Fortran project that compiles under VS2008 and Fortran 11. I am now trying to compile with VS2010 and Fortran 12 (Fortran Composer XE 2011). Using the release notes instructions, I was able to resolve a few MSB4075 errors. However those same subprojects that gave the MSB4075 errors now give a LNK2019 error when building. Here is the build output:
3>------ Rebuild All started: Project: lint (tools_gpl\\lint\\lint), Configuration: Debug Win32 ------
3>Build started 7/18/2011 3:12:42 PM.
3>_PrepareForClean:
3> Deleting file "Debug\\lint.lastbuildstate".
3>InitializeBuildStatus:
3> Touching "Debug\\lint.unsuccessfulbuild".
3>ClCompile:
3> main.cpp
3>main.obj : error LNK2019: unresolved external symbol _MAIN_LINT referenced in function _main
3>..\\..\\bin\\Debug\\lint.exe : fatal error LNK1120: 1 unresolved externals
3>
3>Build FAILED.
I have attached an example c++ wrapper and Fortran subroutine that is causing the error. Can you see anything that needs to be changed for a VS2010 build?
Thanks,
Steve
Link Copied
- 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
why don't you create a solution with both the c project and the fortran project in it. and then set the project dependancy and start-up project (right click in solution explorer and let it know ifc project depend on the Fortran project orvisa versa? and then let it know compile order?)
and one last item,make the output dirrectories for each project
$(SolutionDir)$(ConfigurationName)
- 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
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
and of course the change from VS2008 to VS2010 losing the linking in of libraries would beg the question...
why?
guess i need to shift gears and test if it affects my projects before a fire erupts and i need to figure it out yesterday...
thanks for the heads up!
oh and thanks for the solution of putting the path in the Additional Dependencies box (think i may already do that...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A Public Service Notice - the Release Notes are there for a reason. Yes, they're long, but you should read them when you get a new release from us. (For updates it's sufficient to look at the Change History.) This is how we alert you to things you need to know.

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