Subj : make confusion, help needed To : borland.public.cpp.borlandcpp From : Stefan Schumann Date : Tue Mar 16 2004 02:04 pm Hi there! I have big trouble in understanding the make file. I tried to write a simple DOS program using BGI. With BGIOBJ.exe I created egevga.obj and put it to the project folder. Now I would like to use the commanline-tools to make an exe file but here is my problem. The program is quite simple, it prints a sentence and draws a rectangle: Note that it works, when I compile the project inside the IDE. #include #include void main (void) { int gdriver = DETECT, gmode; printf("Hello, here I am"); printf("%d",registerbgidriver(EGAVGA_driver)); initgraph(&gdriver, &gmode, "" ); rectangle(4, 6, 20, 50 ); } Here is my makefile: test3.exe : test3.obj tlink -LE:\BC5\LIB -c -Tde -x test3.obj test3.obj : test3.c bcc -c -P- -IE:\BC5\INCLUDE test3.c I tried to compile and link the Program with "make -ftest3.mak", but then I get the following errors: Error: Undefined symbol _rectangle in module test3.c Error: Undefined symbol _initgraph in module test3.c Error: Undefined symbol _printf in module test3.c Error: Undefined symbol _registerbgidriver in module test3.c Error: Undefined symbol _EGAVGA_driver in module test3.c Fatal: No program entry point ** error 2 ** deleting test3.exe Why are the symbols not included, allthough I name the correct include and library paths, why is there no program entry point although there is a main function? Sure, I can create a makefile inside the IDE (which works but I tried to understand it, without any success) but I need to work in DOS mode in future so I would like to understand the main reasons for my problems. Thanks in advance. Stefan .