wlink failing to link libraries specified for Win95 project #1082
Unanswered
BlueFrog76
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Please put here linker map file, but it looks like some wrong options used by Fortran compiler. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been provided a Windows program with Fortran and C++ source (mostly Fortran) that was compiled with a previous version of Watcom (I don't know what previous version). The Watcom project and target files provided compile all the source files using Open Watcom 2.0 (fortran 77 version), but when it comes time to link the libraries, I get several undefined reference messages:
Error! E2028: _GetTextExtentPointA is an undefined reference
Error! E2028: _SendDlgItemMessageA is an undefined reference
Error! E2028: _WritePrivateProfileStringA is an undefined reference
Error! E2028: _GetTextMetricsA is an undefined reference
Error! E2028: _SendMessageA is an undefined reference
Error! E2028: _MessageBoxA is an undefined reference
Error! E2028: _GetObjectA is an undefined reference
Error! E2028: _TextOutA is an undefined reference
Error! E2028: _CreateFontIndirectA is an undefined reference
Error! E2028: _DialogBoxParamA is an undefined reference
Error! E2028: _PostMessageA is an undefined reference
Error! E2028: _LoadCursorA is an undefined reference
Error! E2028: _GetMessageA is an undefined reference
Error! E2028: _GetForegroundWindow@4 is an undefined reference
Error! E2028: OPENFILEHOOKPROC is an undefined reference
Error! E2028: _GetOpenFileNameA is an undefined reference
Error! E2028: _GetSaveFileNameA is an undefined reference
Error! E2028: _SetDlgItemTextA is an undefined reference
Error! E2028: _GetWindowTextLengthA is an undefined reference
Error! E2028: _GetDlgItemTextA is an undefined reference
Error! E2028: GENMESHDLGPROC is an undefined reference
Error! E2028: _LoadStringA is an undefined reference
Error! E2028: _GetWindowLongA is an undefined reference
Error! E2028: _SetWindowLongA is an undefined reference
Error! E2028: _CallWindowProcA is an undefined reference
Error! E3137: too many errors encountered
The Target includes several libraries and I have a previous map file that identifies the libraries that were included and used. I'm not sure why the libraries don't seem to be included. I did attempt to ensure they were added by going to the Options>Windows Linking Switches dialog. I selected Import, Export, and Library Switches. I specified the paths to the relevant libraries, but I still get the same errors.
Just before the errors, the compile message in the IDE log is
wlink name dplot32 sys win95 op m libp c:\watcom\lib386\nt libp c:\watcom\lib386 libp e:\CodeProjects\Dplot\lib libr comctl32 libr comdlg32 libr gdi32 libr kernel32 libr user32 libr fparser libr utils
I've tried variations and just listing one of the libraries at a time, including and leaving off the .lib extensions, etc. It really seems like there is something being done differently with the linker options that I am not getting right. Any guidance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions