Topic: Linking with CC
Author: borchert@walt.CS.MsState.Edu (Chris Borchert)
Date: 19 Jun 91 00:20:13 GMT Raw View
I have a working Sun C (cc) program which uses termios and fnctl calls
such as open, close, read, write, and ioctl. The library linked to provide
these routines is, of cource, libc.a.
I am now trying to slowly convert this program to C++ using Sun's CC
translator. My program will compile without error but ld will bomb saying
it does know about any of the previously mentioned routines. I know that
libC.a is being included and libc.a should also by default. I believe that
there must be a confict between the cc and CC libraries, and performing
a CC <file.c> will not be enough. By the way, I do have other C++ programs
that run fine with CC. It has something to do with using these routines
in particular.
Has anyone experienced this problem, and what can I do to correct it.
Thanks,
Chris Borchert
borchert@erc.msstate.edu