Subj : Re: Linker error, 'undefined symbo l' To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Jul 04 2003 03:33 pm > Warn : (1,1):No module definition file specified: using defaults This is a warning, not an error and it is correct. All 16 bit Windows programs use a module definition (*.DEF) file to specify stack size, heap size, segments and things like that. You did not have one in your project so the linker used the default one, DEFAULT.DEF, and told you what it had done. If you don't like the warning then supply a module definition file. > Error: (1,1):Undefined symbol _cprintf in module color2.c Open color2.c in the IDE editor. Place the cursor on the word cprintf. Press Control-F1. The help for that function will appear. Click on Portability. You will see that it is not available in a 16 bit Windows program. Repeat for textbackground and textcolor and the results are the same. They are not available in a 16 bit Windows program. Adding function prototypes for them does not supply the functions. It just allows the compiler to proceed as if such functions would be available, pushing the errors out until later. When the linker tries to bundle all needed functions into an executable you get an unresolved external error. Go to the project window. Right click on the exe name. Select TargetExpert from the menu which appears. Set the platform for DOS and click Ok. Then do a Project|Build_All. .. Ed > Rob C wrote in message > news:3f05c102$1@newsgroups.borland.com... > > -------- The errors I get : > Info :Making... > Info :Building... > Info :Compiling C:\LEARN\color2.c > Info :Compiling C:\LEARN\try2.cpp > Info :Compiling C:\LEARN\try1.cpp > Info :Transferring to C:\BC5\BIN\tlink.exe @C:\LEARN\TRY2.R$P > Warn : (1,1):No module definition file specified: using defaults <-------- ?????????????? > Error: (1,1):Undefined symbol _cprintf in module color2.c > Error: (1,1):Undefined symbol _textbackground in module color2.c > Error: (1,1):Undefined symbol _textcolor in module color2.c > -------------------- > [The linker warning, 'no module definition file specified: using defaults,'] > [how do I fix that?] .