Re: NewEra 3.0 & Static Libs
Posted in 1997
Topics: General Discussion
In article <19970509205301.QAA09132@ladder01.news.aol.com>, 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?!? > >Thanx in advance, > >Bob Try putting "PRAGMA LINKAGE STATIC" at the start of the header files you wish exporting. Hope this helps.