Hello, I am currently working on a project that requires MATLAB to communicate with Geochemist's Workbench. I found the sample code provided within the documentation and tried compiling it as a MATLAB MEX file only to receive many errors such as:
lcc preprocessor error: pipe.cpp:4 Could not find include file <iostream>
lcc preprocessor error: pipe.cpp:5 Could not find include file <string>
Error pipe.cpp: .\RC_helper.cpp: 26 syntax error; found `stdiopipe' expecting `;'
Error pipe.cpp: .\RC_helper.cpp: 26 syntax error; found `(' expecting `)'
Error pipe.cpp: .\RC_helper.cpp: 26 skipping `(' "unnamedpipe"
Error pipe.cpp: .\RC_helper.cpp: 26 extraneous old-style parameter list
Error pipe.cpp: .\RC_helper.cpp: 26 syntax error; found `)' expecting `;'
Error pipe.cpp: .\RC_helper.cpp: 26 skipping `)'
Error pipe.cpp: .\RC_helper.cpp: 30 syntax error; found `&' expecting `)'
Error pipe.cpp: .\RC_helper.cpp: 30 skipping `&' `pipe'
Error pipe.cpp: .\RC_helper.cpp: 32 undeclared identifier `pipe'
Error pipe.cpp: .\RC_helper.cpp: 32 left operand of . has incompatible type `int'
Error pipe.cpp: .\RC_helper.cpp: 32 type error: pointer expected
Warning pipe.cpp: .\RC_helper.cpp: 32 possible usage of pipe before definition
Error pipe.cpp: .\RC_helper.cpp: 36 redefinition of `Clear' previously defined at .\RC_helper.cpp 30
Error pipe.cpp: .\RC_helper.cpp: 36 redeclaration of `Clear' previously declared at .\RC_helper.cpp 30
Error pipe.cpp: .\RC_helper.cpp: 37 too many arguments to `Clear'
Error pipe.cpp: .\RC_helper.cpp: 38 asm: label _Clear: redefined
Error pipe.cpp: .\RC_helper.cpp: 43 syntax error; found `&' expecting `)'
Error pipe.cpp: .\RC_helper.cpp: 43 skipping `&' `pipe'
Error pipe.cpp: .\RC_helper.cpp: 45 undeclared identifier `DWORD'
Warning pipe.cpp: .\RC_helper.cpp: 45 Statement has no effect
Error pipe.cpp: .\RC_helper.cpp: 45 too many errors
I was wondering if you know if it's something I'm doing wrong or if the provided code itself does not function. If so, who do you suggest I contact to aid in the process of writing a pipe between MATLAB and GWB?
Thank you.