Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking problems in borland 5.5 c++ compiler

Status
Not open for further replies.

wduty

Programmer
Jun 24, 2000
271
US
I have a simple windows program which uses some wininet functions. However, I get "unresolved external" for all the wininet functions. When that happens in Visual Studio it means I need to add "wininet.lib" to the linker settings. However, I don't know how to do this on the Borland 5.5 compiler.

I tried the -L option in various combinations in the command line but with no luck. wininet.lib is in c:\borland\bcc55\lib\psdk\ along with all the other lib files and "c:\borland\bcc55\lib" is the option in the ilink 32.cfg file so it seems like it should pick it up, no?
 
Hi,
Try this.

ilink32 -Tpe -aa -C -w- -V4.0 c0w32.obj Prog1.obj, Prog1.exe, ,import32.lib cw32mt.lib wininet.lib, ,

Hope this helps. Pappy
You learn something everyday.
 
but now I am getting an "unresolved external WinMain" message. I tried changing the -aa to -ap because it says in the help files the ap is for console apps but it didn't help.
(?)
By the way what is this supposed to be followed up by running the compiler?
 
bcc32 +c:\path\bcc32.cfg -tW program

change path to the path where the cfg file is, and program to the name of the program, if it's .cpp, if it's .c, type program.c instead. Rob
"Programming is like art...It makes me feel like chopping my ear off."

- Currently down
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top