Re: NewEra 3.0 & Static Libs
Posted in 1997
ttgchicago@aol.com (Ttgchicago) wrote: >Hi all - >Im upgrading to 3.0 from 2.2 and have run into a brick wall. Ive got 2 >static libraries (not .dll's, but .lib's) which contain hundreds of >mundane functions which each program in my system calls at some point or >another. Ive linked these libs into a test project from within the App >Builder (component, modify, libraries, add) but they dont appear to be >linking into the program properly. I keep getting unresolved external >errors relating to the called functions located in the libraries. I >checked the produced makefile and the libraries ARE being added to the >"LINK_LIBS" variable. >Has anyone used static libraries successfully with 3.0 and if so, can they >give me some hints as to what I may be doing wrong or leaving out?!? The includes must be bounded by extern "C". This is because v3.0 uses the C++ syntax rather than C. For example: begin_c extern "C"{ #include "yourIncl.h" } end_c where yourIncl.h is the include file for the libs. >Thanx in advance, >Bob David W Chan GO5 Limited david@go5.com (work) dwc@cix.compulink.co.uk (home)