Subj : Re: Help me !!! To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Sat May 01 2004 11:39 am > I am using Borland C++ 5, ... There are three distinct versions, 5.0, 5.01 and 5.02, each of which might or might not have the patches applied. Identify which you are using and check that you have applied all available patches. When posting a question please say what version you are using and which operating system is being used. > Warn : (1,1):No module definition file specified: > using defaults All 16 bit Windows programs use a module definition (*.DEF) file to specify the stack size and possibly specify other things. You have not provided one so instead of failing with an error the linker used the default one, DEFAULT.DEF, and told you what it did. > ...Attempt to export non-public symbol ... It looks as if needed libraries were not provided. For example GetDocTemplateHead and GetModulePtr are found in both of OWLWLU.LIB and OWLIU.LIB. If one of those libraries was not listed as part of the project so not included in the link then the error you show would probably be generated. Other symbols such as _NextColor and _GetPlotWindow appear to come from other or 3rd party software that probably have their own library so their library or libraries should be listed as part of the project file. Here is a way to arrange to be able to find what symbol is in which library. Create these two batch files in the \bc5\lib directory. From the command line run 1.bat and for each library it will create a LibName.LST file containing the symbols for what the library supplies. After doing this delete 1.bat and 2.bat. Once you have this all you need do to find out what library has a symbol is to make the compiler's LIB directory the default and give a command like this: grep -i "getmoduleptr" *.lst --------------2.bat------------- tlib /C %1.lib , %1.lst ---------------------------------- Note: do not overlook the comma between the arguments --------------1.bat------------- call 2 CTL3DV2 call 2 OCFWM call 2 OCFWLU call 2 OCFWL call 2 OCFWIU call 2 OCFWI call 2 OBSOLETE call 2 IMPORT call 2 BWCC call 2 OWLWS call 2 OWLWM call 2 OWLWLU call 2 OWLWL call 2 CRTLDLL call 2 OWLWIU call 2 OWLWI call 2 NOEHWC call 2 MATHWC call 2 CWC call 2 NOEHWL call 2 MATHWL call 2 CWL call 2 NOEHWM call 2 MATHWM call 2 CWM call 2 NOEHWS call 2 MATHWS call 2 CWS call 2 BIDSS call 2 BIDSM call 2 BIDSL call 2 BIDSC call 2 BIDSI call 2 OLE2W16 call 2 BIVBX ---------------------------------- Note: this file list is from tc++ 4.5 on my machine. Yours most likely has a larger list of *.LIB files so consider altering the list to conform to what is on your machine. .. Ed > Namik wrote in message > news:4093924f$1@newsgroups.borland.com... > > I have problem! I am geting error message(start at //), but > there is no reason for this! :)) > I am using Borland C++ 5, and I suspect in 'extern "C"' > and 'nemespace'! Is there anyone who can give me any > idea about this!? I give no description of the project, but > if there is someone whit expirience, i hope will > understand! :)) Thanks !!! > Here is message: > > // > Info :Making... > Info :Transferring to C:\BC5\BIN\tlink.exe > @C:\PROJE\Mdiglop.r$p > Warn : (1,1):No module definition file specified: using > defaults > Warn : (1,1):Attempt to export non-public symbol > GETDOCTEMPLATEHEAD > Warn : (1,1):Attempt to export non-public symbol > GETMODULEPTR > Warn : (1,1):Attempt to export non-public symbol _atof > Error: (1,1):Undefined symbol _NextColor in module > mdiglop\src\gloplib.cpp > Error: (1,1):Undefined symbol _AddPoint in module > mdiglop\src\gloplib.cpp > Error: (1,1):Undefined symbol _AddCurve in module > mdiglop\src\gloplib.cpp > ... .