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:
- marked "create shared library" in omnet++->makemake->options->target
- 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:
- set project->properties->omnet++->makemake->options->link->additional libraries link (-l option): sqlite3
- 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
Post a Comment