Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit_Matlab demos are not linking properly in MSVC #13

Closed
melanz opened this issue Jan 28, 2014 · 1 comment
Closed

Unit_Matlab demos are not linking properly in MSVC #13

melanz opened this issue Jan 28, 2014 · 1 comment

Comments

@melanz
Copy link
Contributor

melanz commented Jan 28, 2014

I've enabled unit_Matlab according the directions describe here. However, when I tried to build the demos, I ran into the following linking error:

1>------ Build started: Project: demo_matlab, Configuration: Release Win32 ------
1>Linking...
1>demo_matlab.obj : error LNK2019: unresolved external symbol _engOpen referenced in function "public: __thiscall chrono::ChMatlabEngine::ChMatlabEngine(void)" (??0ChMatlabEngine@chrono@@QAE@XZ)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _engClose referenced in function "public: __thiscall chrono::ChMatlabEngine::~ChMatlabEngine(void)" (??1ChMatlabEngine@chrono@@QAE@XZ)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _engEvalString referenced in function "public: bool __thiscall chrono::ChMatlabEngine::Eval(char *)" (?Eval@ChMatlabEngine@chrono@@QAE_NPAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _mxDestroyArray referenced in function "public: bool __thiscall chrono::ChMatlabEngine::PutVariable(class chrono::ChMatrix<double> const &,char *)" (?PutVariable@ChMatlabEngine@chrono@@QAE_NABV?$ChMatrix@N@2@PAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _engPutVariable referenced in function "public: bool __thiscall chrono::ChMatlabEngine::PutVariable(class chrono::ChMatrix<double> const &,char *)" (?PutVariable@ChMatlabEngine@chrono@@QAE_NABV?$ChMatrix@N@2@PAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _mxGetPr referenced in function "public: bool __thiscall chrono::ChMatlabEngine::PutVariable(class chrono::ChMatrix<double> const &,char *)" (?PutVariable@ChMatlabEngine@chrono@@QAE_NABV?$ChMatrix@N@2@PAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _mxCreateDoubleMatrix_730 referenced in function "public: bool __thiscall chrono::ChMatlabEngine::PutVariable(class chrono::ChMatrix<double> const &,char *)" (?PutVariable@ChMatlabEngine@chrono@@QAE_NABV?$ChMatrix@N@2@PAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _mxGetDimensions_730 referenced in function "public: bool __thiscall chrono::ChMatlabEngine::GetVariable(class chrono::ChMatrixDynamic<double> &,char *)" (?GetVariable@ChMatlabEngine@chrono@@QAE_NAAV?$ChMatrixDynamic@N@2@PAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _mxGetNumberOfDimensions_730 referenced in function "public: bool __thiscall chrono::ChMatlabEngine::GetVariable(class chrono::ChMatrixDynamic<double> &,char *)" (?GetVariable@ChMatlabEngine@chrono@@QAE_NAAV?$ChMatrixDynamic@N@2@PAD@Z)
1>demo_matlab.obj : error LNK2019: unresolved external symbol _engGetVariable referenced in function "public: bool __thiscall chrono::ChMatlabEngine::GetVariable(class chrono::ChMatrixDynamic<double> &,char *)" (?GetVariable@ChMatlabEngine@chrono@@QAE_NAAV?$ChMatrixDynamic@N@2@PAD@Z)
1>C:\Users\Daniel\Documents\SBEL\Chrono_GIT_build\bin\Release\demo_matlab.exe : fatal error LNK1120: 10 unresolved externals
1>Build log was saved at "file://c:\Users\Daniel\Documents\SBEL\Chrono_GIT_build\demos\matlab\demo_matlab.dir\Release\BuildLog.htm"
1>demo_matlab - 11 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

I'm currently running on Windows 7, using MSVC with Matlab2013a installed.

@melanz
Copy link
Contributor Author

melanz commented Jan 28, 2014

The issue was that I was using a 64-bit version of Matlab with a 32-bit compilation of Chrono.

@melanz melanz closed this as completed Jan 28, 2014
shlok191 added a commit that referenced this issue Apr 13, 2022
shlok191 added a commit that referenced this issue Apr 14, 2022
* Removing linking libiomp5.lib for vs 2019 deployment

* Implemented build_pychrono.bat code in gitlab-ci.yml

* Fixed .gitlab-ci.yml for windows deployment

* Fixing windows deployment CI script

* Made changes to gitlab-ci.yml file

* Edited .gitlab-ci.yml to fix vs2019 deploy script

* Attempting conda build with conda-forge channel for vs2019 deploy

* Changed bld.bat to fix environment variables

* Edited meta.yaml for vs2019 deployment

* Attempting to run vs2019 deployment with correct vs compiler version

* Attempting to run vs2019 deployment with correct vs compiler version

* Attempt to use vs2019 for windows:vs2019 deployment

* Attempt to fix vs2019 #2

* Attempt to fix vs2019 #3

* Attempt to fix vs2019 #3

* Attempt to fix vs2019 #4

* Attempt to fix vs2019 #4

* Attempt to fix vs2019 #5

* Change windows conda compiler

* Attempt to fix vs2019 #6

* Attempt to fix vs2019 #7

* Attempt to fix vs2019 #8

* Attempt to fix vs2019 #9

* Attempt to fix vs2019 #10

* Attempt to fix vs2019 #11

* Attempt to fix vs2019 #12

* Attempt to fix vs2019 #12

* Attempting vs2019 deployment for windows without irrlcith

* Attempt to fix vs2019 #13

* Attempt to fix vs2019 #14

* Attempting to get vs2019 deployment to pick correct location for Irrlicht

* Revert "Attempting to get vs2019 deployment to pick correct location for Irrlicht"

This reverts commit bea088d.

* Attempt to fix vs2019 #15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant