c++ - <!> Error during startup: Cannot load library in OMNET++ project while using sqlite3 -


i have omnet++ project, csw, references other omnet++ projects via project->properties->project references.

the reference project cb_csw_vehicle works fine. marked project project->properties->omnet++->makemake->options->target shared library. have libcb_csw_vehicle.dll, used main project csw. simulations csw run, using cb_csw_vehicle without problems.

the reference other project cb_csw_cloud, doesn't work. made same steps it:

  1. marked "create shared library" in omnet++->makemake->options->target
  2. checked project cb_csw_cloud in properties->project references of main project

i can build main project csw. can build libcb_csw_cloud.dll. when run simulation project csw, receive error:

<!> error during startup: cannot load library '../../../cb_csw_cloud/src//libcb_csw_cloud.dll': operation completed successfully. 

the difference between these 2 projects, cb_csw_cloud uses sqlite3 library. added project following steps:

  1. set project->properties->omnet++->makemake->options->link->additional libraries link (-l option): sqlite3
  2. set project->properties->c/c++general->paths , symbols->library paths: c:/sqlite

since don't receive exact information, why libcb_csw_cloud not loaded, don't know causes problem. use in same way, other project cb_csw_vehicle, works. leads me suggestion, sqlite3 library causes problem. possible? can project csw have reference other project cb_csw_cloud, uses library sqlite3? or shall add library csw?

can me run csw project?

update: solved problem adding sqlite3 library run configuration , copying source code of cb_csw_cloud , cb_csw_vehicle projects csw project. difficult in omnet++ have lot of projects.

you have add link sqlite3 library in run configuration of csw project. go run | run configurations... | main tab | more>> , in dynamic libraries write path sqlite3 library. please note path has relative working directory, , without dll suffix, without lib prefix.
if dll file of sqlite3 doesn't contain lib prefix, try rename (for example sqlite3.dll libsqlite3.dll).


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -