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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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.