- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This communication is a few weeks since my last. First of all thanks to those who have helped me earlier with the compilation issues I was having with Fortran. I believe I have managed to solve them. but now I am having a problem with linking the files together. See below.
Compiling with Intel® Fortran Compiler 2025.3.2 [Intel(R) 64]...08:02:38:642 osd_a.f9008:02:44:345 Linking...08:02:44:549 osd_a.obj : error LNK2019: unresolved external symbol DIALOGBOXPARAM_G referenced in function _WinMain@1608:02:44:555 msvcrtd.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)08:02:44:559 x64\Debug\opticsoft.exe : fatal error LNK1120: 2 unresolved externals08:02:44:562 08:02:44:562 Build log written to "file://C:/opticsoft/i2610/opticsoft/x64/Debug/BuildLog.htm"08:02:44:562 opticsoft - 3 error(s), 0 warning(s)08:02:44:570 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========08:02:44:570 ========== Build completed at 8:02 AM and took 06.438 seconds ==========
Because the Fortran compiler objected to my use of DIALOGBOXPARAM (used previously with IVF), I changed the call to DIALOGBOXPARAM_G found in user32.f90 file. However, I am not sure whether or not this was a good move.
As for the other error, signified by msvcrtd.lib. I haven’t a clue what that is about. When I received this error first of all, I added what I imagined was the appropriate link to the option for additional include directories within the compiler, but this cause of action had no effect. Both errors appear in the file osda.f90, which contains the routine winMain.
Would appreciate any help to resolve the above two problems.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to post the code where you call this, it is without doubt a problem with the call args and the declarations of the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Attached is the file which I believe generates the problems. This was written by a colleague some 20 years ago, and I have made minor modifications in the hope of making it compatible with the latest IVF. However, I'm somewhat at sea with combining C with Fortran. If it would help I can send the other files within the program. Thanks for your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you please include all the necessary files and instructions for the settings to reproduce the issue?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page