rc05@gte.com (Ramesh Chandak) (04/12/91)
here's a simple program that I am trying to link. It compiles okay.Development
environment is Microsoft C Compiler version 6.0
#include <graph.h>
void main ( void )
{
_outtext(" hello world \n");
}
it compiles fine. However, I get a link error. It says :
Link Error : L2029
_aNchkstk in file.c
hello.obj (hello.c)
unresolved external
1 error detected.
What's going on here ?
--
- Ramesh M. Chandak
rc05@gte.com
loverboy@athena.mit.edu
tcs@mailer.jhuapl.edu (Carl Schelin) (04/12/91)
In article <10976@bunny.GTE.COM>, rc05@gte.com (Ramesh Chandak) says: > >here's a simple program that I am trying to link. It compiles okay.Development >environment is Microsoft C Compiler version 6.0 > >#include <graph.h> > >void main ( void ) >{ > _outtext(" hello world \n"); >} > >it compiles fine. However, I get a link error. It says : >Link Error : L2029 >_aNchkstk in file.c >hello.obj (hello.c) > >unresolved external > >1 error detected. > >What's going on here ? > I just compiled your small program on MSC 6.00 without a problem. I also tried to compile without specifying GRAPHICS.LIB on the command line. I received an "unresolved external __outtext" error. The only thing that I can think of would be a different LINK.EXE somewhere out there on your system. Dos comes with one. MSC SDK, QBasic or maybe an older version of MSC (I kept 5.0 on my system until I was sure all my programs ran on 6.00). Check your path for LINK.EXE. Use some sort of locate or whereis type program which will find it. Carl Schelin tcs@mailer.jhuapl.edu