Please HELP! I can't link SCRNSAVE.LIB w/ Watcom C/C++ 
Author Message
 Please HELP! I can't link SCRNSAVE.LIB w/ Watcom C/C++

        Hi All,

Sorry if I wasting bandewidth but I getting more and more desperate.

I'm trying to create a screensaver, and there should be no problem but:

-I'm using Watcom C/C++ compiler (not the good MS one) :-{
-I didn't found the SCRNSAVE.LIB w/ my compiler so...
-I used the LIB that was on Borland server (MS don't give that file!)

I wrote a sample screensaver (based on the API guide's one) and tried to
compile it but:

_cdecl gives an error:

cd e:\data\mm3ds
wmake -f e:\data\mm3ds\testany.mk -h -e e:\data\mm3ds\ssapl.exe
wpp ssaap.cpp -i=G:\Watcom\h;G:\Watcom\h\win -w4 -e25 -zq -otexan -d2 -ml
-bt=windows
scrnsave.h(135): Error! E671: (col 38) function modifier cannot be used on a
variable
scrnsave.h(135): Note! N393: (col 38) included from ssaap.cpp(3)
scrnsave.h(136): Error! E671: (col 31) function modifier cannot be used on a
variable
scrnsave.h(137): Error! E671: (col 43) function modifier cannot be used on a

[Same errors deleted]

Error(E42): Last command making (e:\data\mm3ds\ssaap.obj) returned a bad
status
Error(E02): Make execution terminated

Then I removed the faulty _cdecl and managed to compile but got link errors:

Warning(1008): cannot open SLIBCE.lib : file not found
Warning(1028): __acrtused is an undefined reference
Warning(1028): SCREENSAVERCONFIGUREDIALOG is an undefined reference
Warning(1028): _RegisterDialogClasses is an undefined reference
Warning(1028): _szIsPassword is an undefined reference
Warning(1028): _szIniFile is an undefined reference
Warning(1028): _MyHelpMessage is an undefined reference
Warning(1028): _fpMessageFilter is an undefined reference
Warning(1028): _szAppName is an undefined reference
Warning(1028): _szName is an undefined reference
Warning(1028): _szScreenSaver is an undefined reference
Warning(1028): _szPassword is an undefined reference
Warning(1028): _szDifferentPW is an undefined reference
Warning(1028): _szChangePW is an undefined reference
Warning(1028): _szBadOldPW is an undefined reference
Warning(1028): _szHelpFile is an undefined reference
Warning(1028): _szNoHelpMemory is an undefined reference
Warning(1023): no starting address found, using 0001:0000
file scrnsave.lib(skeleton.c): undefined symbol __acrtused
file scrnsave.lib(skeleton.c): undefined symbol SCREENSAVERCONFIGUREDIALOG
file scrnsave.lib(skeleton.c): undefined symbol _RegisterDialogClasses
file scrnsave.lib(skeleton.c): undefined symbol _szIsPassword
file scrnsave.lib(skeleton.c): undefined symbol _szIniFile
file scrnsave.lib(skeleton.c): undefined symbol _MyHelpMessage
file scrnsave.lib(skeleton.c): undefined symbol _fpMessageFilter
file scrnsave.lib(skeleton.c): undefined symbol _szAppName
file scrnsave.lib(skeleton.c): undefined symbol _szAppName
file scrnsave.lib(password.c): undefined symbol _szName
file scrnsave.lib(password.c): undefined symbol _szIniFile
file scrnsave.lib(password.c): undefined symbol _szScreenSaver
file scrnsave.lib(password.c): undefined symbol _szPassword
file scrnsave.lib(password.c): undefined symbol _szDifferentPW
file scrnsave.lib(password.c): undefined symbol _szChangePW
file scrnsave.lib(password.c): undefined symbol _szBadOldPW
file scrnsave.lib(password.c): undefined symbol _szHelpFile
file scrnsave.lib(password.c): undefined symbol _szNoHelpMemory
file scrnsave.lib(password.c): undefined symbol _MyHelpMessage
Error(E42): Last command making (e:\data\mm3ds\ssapl.exe) returned a bad
status
Error(E02): Make execution terminated
Execution complete

Please Help, I don't know what's wrong. Is it the compiler or the LIB or...?

It's the first time a LIB and H doesn't work. Is it MS only?

Thanks a lot for your help,
     and please forgive me asking stupid questions

        Jean-Francois

P.S.: I can give my code if someone is willing to help me.



Fri, 12 Dec 1997 03:00:00 GMT  
 Please HELP! I can't link SCRNSAVE.LIB w/ Watcom C/C++

Quote:

>Sorry if I wasting bandewidth but I getting more and more desperate.
>I'm trying to create a screensaver, and there should be no problem but:
>-I'm using Watcom C/C++ compiler (not the good MS one) :-{

                                           ^^^^^^^^^^^
GOOD MS Compiler? Sounds vaguely like "military intelligence"
or "Jewish Nazi".  :-)  Watcom has been better in my experience
than either MS or Borland.

Quote:
>-I didn't found the SCRNSAVE.LIB w/ my compiler so...
>-I used the LIB that was on Borland server (MS don't give that file!)

This is a compiler and platform dependent question, and should be directed
off of comp.lang.c to the appropriate newsgroup, say, comp.os.msdos.prog-
rammer. Maybe call tech support!

Anyway, the errors you are getting (e.g. about SLIBCE) looks like it's
due to the library path not being set (I think it's the LIB environment
variable).

Best regards.
--
+----------------------------------------------------------------------------+
| Derick R. Qua-Gonzalez                                          | ________ |
| Department of High Energy Physics, California State University  | \      / |

|        ``It is better to be hated for what one is,              |   \  /   |
|          than loved for what one is not.'' (A. Gide)            | G  \/ USA|
+-----------------------------------------------------------------+----------+
| mQBNAy/qJJMAAAECANBCB543eTUkdG8Mqx6K2cm3WxCVtKY8ZbB9WY6A2Ne4dQi8| PGP2.6.2 |
| xh7OxjHXP/eXp5BSbmVAihEGd7r+5g/yknko56kABRG0MERKUiBRdWEtR29uemFs|  Public  |
| ZXogPGRxdWFAUHJvbWV0aGV1cy5FYXJ0aGxpbmsuTmV0Pg==                | KeyBlock |
| =70DW                                                           | 06.20.95 |
+-----------------------------------------------------------------+----------+



Sun, 14 Dec 1997 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help in finding scrnsave.h and scrnsave.lib

2. Please Help: Where could I find SCRNSAVE.LIB ????

3. Scrnsave.lib linking Error

4. Newbie: separate big .cs file into small .cs files

5. Problem Linking w/ Watcom - Please Help

6. Can't link MSVC generated .lib to Borland C++ application

7. importing a c++ class from a dll without linking with the dll's lib file

8. Watcom C/C++ Gurus: Please Help.

9. Linking Watcom .lib files with MSVC 5

10. Watcom .lib file linking

11. Turbo C++ help with LIB, please

12. Graphics Lib for Watcom C++

 

 
Powered by phpBB® Forum Software