[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Library not found with mkoctfile C++

From: Vision
Subject: Library not found with mkoctfile C++
Date: Fri, 11 Mar 2016 03:19:36 -0800 (PST)


My main.cpp makes use of following files snap7.lib snap7.dll snap7.cpp
snap7.h in C:/mydirectory/

I have next code that works for me to compile a C++ code on a Windows 64
g++.exe -o client.exe main.cpp snap7.cpp -L"C:/MinGW64/lib" -static-libgcc
C:/MinGW64/lib/gcc/x86_64-w64-mingw32/5.3.0/libstdc++.a snap7.lib 

When I try to translate this to octmkfile, I get undefined reference errors
in snap7.cpp that links to the snap7.lib (I think).

mkoctfile C:/mydirectory/main.cpp C:/mydirectory/snap7.cpp -LC:/MinGW64/lib
-LC:/mydirectory/ -static-libgcc
C:/MinGW64/lib/gcc/x86_64-w64-mingw32/5.3.0/libstdc++.a snap7.lib
-IC:/MinGW64/include -IC:/mydirectory/

Can someone point me what I'm doing wrong?

Thank you 

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]