Menu

plotutils linker error in Visual Studio

Help
2007-12-19
2012-07-26
  • tomcallahan

    tomcallahan - 2007-12-19

    Please pardon a Visual Studio question!

    I am trying to #include<plotter.h> in a Visual Studio 2005 Express Edition project. The compiling step works fine, but I see linker errors of the sort:
    main.obj : error LNK2019: unresolved external symbol "public: int __thiscall Plotter::fcontrel(double,double)"

    I have added libplotter.a and libplotter.lib to the Additional Dependencies field under Project properties \ Configuration properties \ Linker \ Input \ Additional Dependencies. The lib directory containing these files is also added to the list of VC++ Directories in Tools\Options. I'm new to programming, Visual Studio, and the GNU tools, so any help would be appreciated.

    Thanks for your help!

     
    • Kees Zeelenberg

      Kees Zeelenberg - 2007-12-27

      In general, you cannot use C++-libraries made for one compiler with another compiler. So you cannot use libplotter.a, which has been created with and for GCC, with Visual Studio. You might create your own Visual Studio libplotter library by compiling the units and linking them into a library.

       
MongoDB Logo MongoDB