Subj : Re: unresolved error with FITS To : borland.public.cpp.borlandcpp From : "Alan Giltinan" Date : Wed Oct 08 2003 04:04 pm Thanks Ed, Worked like a charm... I am now getting another error which i presume to be a function within the ..LIB itself. "Error: Error: 'D:\CFITSIO\CFITSIODLL_2470_LATEST\CFITSIO.LIB' contains invalid OMF record, type 0x21" If i cant get around it i will contact the cftsio people about it if i can. Thanks again "Ed Mulroy [TeamB]" wrote in message news:3f8410d1@newsgroups.borland.com... > I think you are correct in your assumtion. The header file only provides > function templates for the functions to be used. An actual library or DLL > is what supplies the code for those functions. > > If the FITS library is a DLL. > Locate the DllName.LIB file > If there is no such file or if there are complaints about it > when you later try to build the program you can create > a new one with a command like this one: > implib -c DllName.LIB DllName.DLL > where the command is executed when the default > directory is the project directory > > Else locate the LIB file > > Go to the project window > Highlight the EXE name by clicking on it > Press the Insert key > A file selection dialog will open, select the *.LIB file > > Now do a Project|Make > > If you do know where the library or DLL for the FITS library is then you > will not be able to build the program until you locate it. > > . Ed > > > Alan Giltinan wrote in message > > news:3f84086e@newsgroups.borland.com... > > > > Hi all, > > I have a problem which keeps occuring when i try to build my program. > > First, the program is used for reading a particular image file called > FITS. > > The 'fitsio.h' file is included without a problem and compiling is no > > problem. > > However when i try to build, the following error occurs, > > "Error: Error: Unresolved external '_ffopen' referenced from > > D:\CFITSIO\CEXAMPLES\TEST_FITS.OBJ" > > I suspect it is because i do not have a .lib or .dll file specified > > correctly but i do not know how to do this. > > > > Can anyone help please? > > thanks > > .