- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a problem building a debug executable using an debug library.
First I did build a library. I build a debug version and a release version.
Then I try to build an executable that needs this library.
What succeeds:
If I build a release executable using a release library.
If I build a release executable using a debug library.
If I build a debug executable using a release library.
What fails:
If I build a debug executable using a debug library.
Error messages are:
m_utils.obj : error LNK2019: unresolved external symbol _GETCWD referenced in function _M_UTILS_mp_GETOS
ops_get_arg.obj : error LNK2001: unresolved external symbol _GETCWD
ops_main.obj : error LNK2019: unresolved external symbol _EXIT referenced in function _MAIN__
ops_main.obj : error LNK2019: unresolved external symbol _SYSTEM referenced in function _MAIN__
ops_write_progress.obj : error LNK2019: unresolved external symbol _FLUSH referenced in function _OPS_WRITE_PROGRESS
Debug/ops_debug.exe : fatal error LNK1120: 4 unresolved externals
m_utils.mod, ops_get_arg.for ops_main.for and ops_write_progress.for are some of the sources I'm compiling now and that are not in the library.
What can I do to make this work?
Regards, Wilco de Vries.
I have a problem building a debug executable using an debug library.
First I did build a library. I build a debug version and a release version.
Then I try to build an executable that needs this library.
What succeeds:
If I build a release executable using a release library.
If I build a release executable using a debug library.
If I build a debug executable using a release library.
What fails:
If I build a debug executable using a debug library.
Error messages are:
m_utils.obj : error LNK2019: unresolved external symbol _GETCWD referenced in function _M_UTILS_mp_GETOS
ops_get_arg.obj : error LNK2001: unresolved external symbol _GETCWD
ops_main.obj : error LNK2019: unresolved external symbol _EXIT referenced in function _MAIN__
ops_main.obj : error LNK2019: unresolved external symbol _SYSTEM referenced in function _MAIN__
ops_write_progress.obj : error LNK2019: unresolved external symbol _FLUSH referenced in function _OPS_WRITE_PROGRESS
Debug/ops_debug.exe : fatal error LNK1120: 4 unresolved externals
m_utils.mod, ops_get_arg.for ops_main.for and ops_write_progress.for are some of the sources I'm compiling now and that are not in the library.
What can I do to make this work?
Regards, Wilco de Vries.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please paste into a reply here the text under Properties > Fortran > Command Line > All Options for the failing executable project configuration and then for one that works. Please also post this information for the library in both Release and Debug configurations.
My guess is that for the library, you have Libraries > Disable Default Library Search Rules set to Yes for the debug configuration and No for the Release configuration, and that for the executable project, you have Compatibility > Use PowerStation Portability Library set to Yes for the Release configuration and No for the Debug configuration.
That's the only thing that comes to mind.
My guess is that for the library, you have Libraries > Disable Default Library Search Rules set to Yes for the debug configuration and No for the Release configuration, and that for the executable project, you have Compatibility > Use PowerStation Portability Library set to Yes for the Release configuration and No for the Debug configuration.
That's the only thing that comes to mind.
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