-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Cannot run C++ example on Win7. #2792
Comments
Are you using pre-compiled libmxnet.dll or did you compile it on your own? On Fri, Jul 22, 2016 at 11:46 PM, Qiang Kou (KK) [email protected]
|
I have the same problem with @anthony-han , @hjk41 and i use both pre-compiled libmxnet.dll and compiled it on my own,the problem is still there. |
I have the same problem . If this line is in the code |
This is usually caused by a mis-match in the DLL. On Wed, Nov 16, 2016 at 9:22 PM, basejn [email protected] wrote:
|
I have the same problem when compiling mxnet on windows 7 (32 bit). The build works without any errors, but simple examples using the c api just freeze: #include <iostream>
extern "C" __declspec(dllimport) const char* MXGetLastError();
int main(){
std::cout << "LAST ERROR: " << MXGetLastError() << std::endl;
return 0;
} The strange thing is the same executable (with same opencv, openblas, mxnet dlls) works without any problems on windows10 (32 and 64 bit). #include <iostream>
#include <windows.h>
#include <tchar.h>
typedef const char*(* f_LAST)();
int main(){
HINSTANCE proc = LoadLibrary(_T("libmxnet.dll"));
if(proc) std::cout << "lib loaded" << std::endl;
f_LAST last = (f_LAST)GetProcAddress(proc, "MXGetLastError");
if (last) std::cout << "FUNC last error loaded : " << last() << std::endl;
return 0;
} This works on windows 7 and 10. |
@GabbaGandalf but it seems the MXGetLastError function does not work either! i saw somebody load the dll dynamically, but i do not know how to do it ! |
This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks! |
On Win7 statically does not work, the application hangs. |
Hi everyone,
I cannot run the C++ example on Win7. There is no error during compilation. When running the program, it cannot enter the main function. However, the same program can run pretty well on Win10. Can anyone help?
Tony
The text was updated successfully, but these errors were encountered: