
Set LIBPATH = C:\Program Files\MATLAB\R2016b\extern\lib\win64 C:\Program Files\MATLAB\R2016b\extern\lib\win64

Set INCLUDE = C:\TDM-GCC-64\include C:\TDM-GCC-64\include Set PATH = C:\TDM-GCC-64\bin C:\Program Files\MATLAB\R2016b\extern\include\win64 C:\Program Files\MATLAB\R2016b\extern\include C:\Program Files\MATLAB\R2016b\simulink\include C:\Program Files\MATLAB\R2016b\lib\win64 C:\Program Files (x86)\Common Files\Oracle\Java\javapath C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\ C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\ C:\Program Files\avs\bin C:\Program Files\avs\bin32 C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Windows\System32\OpenSSH\ C:\Program Files (x86)\Enterprise Vault\EVClient\ C:\Program Files\Intel\WiFi\bin\ C:\Program Files\Common Files\Intel\WirelessCommon\ C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL C:\Program Files\Intel\Intel(R) Management Engine Components\DAL C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common C:\Program Files\MATLAB\R2016b\bin C:\TDM-GCC-64\bin C:\Users\myName\AppData\Local\Microsoft\WindowsApps Yes.įound installed compiler 'MinGW64 Compiler (C++)'. Looking for file 'C:\TDM-GCC-64\bin\g++.exe'. Looking for environment variable 'MW_MINGW64_LOC'. Looking for compiler 'MinGW64 Compiler (C++)'.

largeArrayDims and remove the -compatibleArrayDims option. In the future, MATLAB will require the use of Neither -compatibleArrayDims nor -largeArrayDims is selected. Here's the verbose log from before it fails: > mex -v COMPFLAGS='$COMPFLAGS -std=c++03' -IC:\ourLibraryLocation myTargetMex.cpp myclass.o (a few other. Myclass.o: In function `MyAssertionClass::MyAssertionClass(char const*, int, char const*)':Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:1029: undefined reference to `std::_cxx11::basic_ostringstream, std::allocator >::basic_ostringstream()'Ĭollect2.exe: error: ld returned 1 exit status Myclass.o: In function `MyAssertionClass::MyAssertionClass(char const*, int, std::_cxx11::basic_string, std::allocator >)':Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:1014: undefined reference to `std::_cxx11::basic_ostringstream, std::allocator >::basic_ostringstream()' Myclass.o:C:\msys64\home\myName\Desktop\test/myclass.cpp:189: more undefined references to `_imp_acrt_iob_func' follow Myclass.o: In function `M圜lass::M圜lass(int, double*, int, int*, int, double, double, int, char)':Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:139: undefined reference to `_imp_acrt_iob_func'Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:178: undefined reference to `_imp_acrt_iob_func'

Myclass.o: In function `M圜lass::M圜lass(int, double*, int, int, int*, double, int, double, double, int, bool, char)':Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:67: undefined reference to `_imp_acrt_iob_func'Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:110: undefined reference to `_imp_acrt_iob_func'Ĭ:\msys64\home\myName\Desktop\test/myclass.cpp:121: undefined reference to `_imp_acrt_iob_func' When I try to do so, I get the following errors: Error using mexĬpp_mexapi_version.o: In function `mexfilerequiredapiversion':Ĭ:/Progra~1/MATLAB/R2016b/extern/version/cpp_mexapi_version.cpp:4: multiple definition of `mexfilerequiredapiversion'Ĭ:\Users\myName\AppData\Local\Temp\2\mex_53351148310745_8852\cpp_mexapi_version.obj:cpp_mexapi_version.cpp:(.text+0x0): first defined here
INTEL R MANAGEMENT ENGINE COMPONENTS IS IT NESASARY CODE
I am attempting to use mex in MATLAB R2016b to compile C++03 code on Windows. Part of it was this problem, which hopefully on its own with more info will make more sense. My last post was cluttered with lots of information.
