I have loaded the source code (from wxtid47.zip) on lcc-win32, to compile it.
(I chose lcc since this was the platform it was developed on.)
I get a small but decisively blocking error in the compilation:
(I have made absolutely no changes to the original code.)
lcc output follows:
- Code: Select all
Wedit output window build: Wed Nov 30 14:20:41 2011
tide2idx.obj: multiple definition of _main
first definition is in file wxtidelcc.obj
loclib.obj: multiple definition of _allocate_copy_string
first definition is in file tide2idx.obj
xprintf.obj: multiple definition of _printf
first definition is in file wxtide.obj
Error d:\ioannis\documents\wxtide32\wxt47_source\wxtide.c 3841 undefined reference to _fabsf
Error d:\ioannis\documents\wxtide32\wxt47_source\wxtide.c 4518 undefined reference to __fabsi
C:\lcc\bin\make.exe
Compilation + link time:0.4 sec, Return code: 10
I'm referring to the undefined reference errors. In the header files, I can find defined "fabsf" and "_fabsi" (one underscore less).
Apparently the compiler prepends an extra underscore to these names, and then cannot find them to make the link.
If it's any help, Line 3841 is this:
- Code: Select all
if (GetDlgItemFloat(hwnd, IDF_MARKLEV, &tmpFloat) &&
!FSAME(tmpFloat, pSection->marklev))
Any help with this would be greatly appreciated!
Thanks in advance,
Ioannis
