Link to home
Start Free TrialLog in
Avatar of ehansman
ehansman

asked on

Borland Linker Error

I'm new to C/C++ programming and am trying to compile some ftp source
code I got from www.socket.com on Borland C/C++ 4.52.  The error I get
is -
Linking ac_ftp.exe:
Linker Fatal: 16 bit segments not supported in module globals.c

I can't figure out what is causing this.
I'd appreciate any help anyone can offer me.
Thank you very much.
Avatar of ehansman
ehansman

ASKER

Adjusted points to 100
Im not sure if this could be the answer but , did you make the project before compiling it? And is your include files in the right directory?

Sorry if those weren the answers...
A library file was included in the files I downloaded (winsockx.lib) and am trying to compile.  
This appears to be where the linker is having problems.  The module 'globals.c' must be included in this file because it is not in the project.  I have rebuilt the project everytime before trying to compile it and it appears to be finding all the include files.  I can't figure out what could be a '16 bit segment.'  I am compiling it as 32.  
Any ideas?
Adjusted points to 105
A stab in the dark here, but was there also a winsock32.lib? If so, then use it instead of winsockx.lib.
No there isn't another library, but is there any way to rebuild a library file which I downloaded built?  Obviously it appears that the compiler thinks that something in the library, namely globals.c is 16-bit.  I think the library was compiled under Micrsoft's compiler.  Can I somehow unbuild it and rebuild it?
Does this make sense?
ASKER CERTIFIED SOLUTION
Avatar of tovergaard
tovergaard

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I actually just got the source for the library from the guy who made and am going to recompile it.  Thanks.