- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I also have a link/compatibility problem updating from 11.1.051 to XE 12.0.0.104 using Win32.
My release version compiles and links ok but my debug version compiles ok but does not link properly:
error LNK2001: unresolved external symbol _mainCRTStartup LINK
and lots of LNK4229 warnings, one for each of my modules, e.g.
iso_varying_string.obj : warning LNK4229: invalid directive '/Intel compiler non-linkable IL object file' encountered;
I am linking to a static library prepared from Intel C++ and have different release and debug versions of this library. The debug library (iphreeqcd.lib) does not have the debug info attached and under 11.1.051, I got a lot of warnings like:
warning LNK4099: PDB 'vc80.pdb' was not found with 'C:\Projects\PhreePlot\f90\iphreeqcd.lib' or at 'C:\Projects\PhreePlot\f90\Debug\vc80.pdb'; linking object as if no debug info
which I ignored as I was not interested in debugging into the library.
The libraries have been prepared with an older version of VS by a colleague (VS2005 I think).
The warnings here in XE seem rather serious and nothing seems to have got linked. Do I have to request a more up-to-date version of the library? Is it the VS version that is critical or the C++ compiler version or something else?
Other than this 'minor' problem, the upgrade was very straightforward, even slick.
I've tried attaching my vfproj and build log files to this message but after creating a folder and pressing edit, I never got a 'Files' dialog to upload the files. Hopefully the above is enough to go on, otherwise I'll paste them in for you if necessary.
David
My release version compiles and links ok but my debug version compiles ok but does not link properly:
error LNK2001: unresolved external symbol _mainCRTStartup LINK
and lots of LNK4229 warnings, one for each of my modules, e.g.
iso_varying_string.obj : warning LNK4229: invalid directive '/Intel compiler non-linkable IL object file' encountered;
I am linking to a static library prepared from Intel C++ and have different release and debug versions of this library. The debug library (iphreeqcd.lib) does not have the debug info attached and under 11.1.051, I got a lot of warnings like:
warning LNK4099: PDB 'vc80.pdb' was not found with 'C:\Projects\PhreePlot\f90\iphreeqcd.lib' or at 'C:\Projects\PhreePlot\f90\Debug\vc80.pdb'; linking object as if no debug info
which I ignored as I was not interested in debugging into the library.
The libraries have been prepared with an older version of VS by a colleague (VS2005 I think).
The warnings here in XE seem rather serious and nothing seems to have got linked. Do I have to request a more up-to-date version of the library? Is it the VS version that is critical or the C++ compiler version or something else?
Other than this 'minor' problem, the upgrade was very straightforward, even slick.
I've tried attaching my vfproj and build log files to this message but after creating a folder and pressing edit, I never got a 'Files' dialog to upload the files. Hopefully the above is enough to go on, otherwise I'll paste them in for you if necessary.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your C++ library was created with the /Qipo option. You should also specify that option (Multifile interprocedural optimizatiion) for the Fortran project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve.
I was using /Qipo. After building with 11.1, I Cleaned the Project and Solution and rebuilt with XE2011. Other than that I made no changes to the compile and link options. 11.1 linked OK, XE2011 didn't.
Here are my debug build options:
/nologo /debug:full /Od /Qipo /assume:nocc_omp /extend_source:132 /Qopenmp-report0 /Qpar-report0 /Qvec-report0 /Qdiag-file:"Debug\pp.diag" /debug-parameters:used /warn:declarations /warn:unused /warn:truncated_source /warn:interfaces /real_size:64 /align:commons /Qfp_port /module:"Debug/" /object:"Debug/" /Fd"Debug\vc90.pdb" /traceback /check:pointer /check:bounds /check:uninit /libs:static /threads /dbglibs /c
Additional Options:
/assume:norealloc_lhs
I was following some old instructions for adding files. Your link worked fine. See attached files.
David
I was using /Qipo. After building with 11.1, I Cleaned the Project and Solution and rebuilt with XE2011. Other than that I made no changes to the compile and link options. 11.1 linked OK, XE2011 didn't.
Here are my debug build options:
/nologo /debug:full /Od /Qipo /assume:nocc_omp /extend_source:132 /Qopenmp-report0 /Qpar-report0 /Qvec-report0 /Qdiag-file:"Debug\pp.diag" /debug-parameters:used /warn:declarations /warn:unused /warn:truncated_source /warn:interfaces /real_size:64 /align:commons /Qfp_port /module:"Debug/" /object:"Debug/" /Fd"Debug\vc90.pdb" /traceback /check:pointer /check:bounds /check:uninit /libs:static /threads /dbglibs /c
Additional Options:
/assume:norealloc_lhs
I was following some old instructions for adding files. Your link worked fine. See attached files.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've got it all working now, thanks.
Looking at the files I sent, they related to the debug version not the release version I was having trouble with. I suspect that there somehow was confusion between the two build types - and the libraries they were trying to link, i.e. trying to link the release library to a debug compile, or vice versa. Not sure how that happened as I had not changed the build configurations between 11.1 and 12.0 but on the balance of probability it was probably my error somewhere. I now cannot reproduce the original problem.
I have also updated toXE 12.0.1.127 in the interim though I doubt if that was the critical difference.

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