c++ - Link 2019 error but the definition exists -


i have been trying external library work within visual studio 2013, getting error 2019 unresolved external symbol 3 functions within code. seems linking fine, can jump definition/declaration in header file f12, code using test code comes library. please explain going on? have pasted code below , error message too. far i'm aware have correctly set configuration properties.

best, sam

error messages:

1>------ build started: project: sbml_model_sim, configuration: debug win32 ------ 1>source.obj : error lnk2019: unresolved external symbol _free_myresult referenced in function _main 1>source.obj : error lnk2019: unresolved external symbol _write_csv referenced in function _main 1>source.obj : error lnk2019: unresolved external symbol _simulatesbmlfromfile referenced in function _main 1>c:\users\sam\documents\visual studio 2013\projects\sbml_model_sim\debug\sbml_model_sim.exe : fatal error lnk1120: 3 unresolved externals ========== build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

code:

#include <stdio.h> #include <iostream> #include "libsbmlsim\libsbmlsim.h"  using namespace std;  int main(void) {     /*     * simulate sbml.xml time=20 dt=0.1, print_interval=10     * 4th-order runge-kutta method.     */     myresult *r = simulatesbmlfromfile("repressilator.xml", 20, 0.1, 10, 0, mthd_runge_kutta, 0);     write_csv(r, "result.csv"); /* export simulation result csv file */     free_myresult(r);           /* free result object */     return 0; } 

website of library:

http://fun.bio.keio.ac.jp/software/libsbmlsim/

the linking of app might c++ , lib c, try this:

extern "c" {   #include "libsbmlsim/libsbmlsim.h" } 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -