Need some serious help to link Dataframe with my C++ application #262
-
Build a very simple C++ application in order to get practicing with dataframe in C++. Spend the whole day but can't even have the application compiled. I am using VS code in windows 11 (64-bits) and I am using cl.exe as C++ compiler. I used vcpkg to download and install dataframe as instructed in dataframe web site. The code itself is so simple: using namespace hmdf; int main (int argv, char* argc[]) The following is the compiling command VS code generated for me: cl.exe /Zi /Zc:__cplusplus /std:c++20 /EHsc /nologo D:\DellProjs\CPPProjs\EMA\ema_tst.cpp /I"c:\dev\vcpkg\vcpkg\installed\x64-windows\include" /FeD:\DellProjs\CPPProjs\EMA\ema_tst.exe /link"c:\dev\vcpkg\vcpkg\installed\x64-windows\lib\DataFrame.lib" But the compiling kept failing. The error msg as followings: It looks like that something is related to 64-bits or 32-bits. But my OS is windows 11 (64-bits), my compiler, my vs code are all 64-bits. vcpkg installed dataframe as x64-windows automatically. I don't where this x64 and x86 issues come from. Need help here. Thanks a lot! I really want to involve datafram lib into my new project. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
I am not familiar with Windows development environment, but from the error messages the problem is kind of obvious. I hope that's helpful. |
Beta Was this translation helpful? Give feedback.
-
No problem. You certianly helped me a lot. It looks like that it is quite far away to make it work in windows. I switched to Linux. I have a ubuntu linux machine ready. I have the latest version of g++ compiler (including g++, c++, gcc), cmake ready. I did exactly you instructed in your github readme.md: But I got the following error msg:You have called ADD_LIBRARY for library DataFrame without any source files. This typically indicates a problem with your CMakeLists.txt file
|
Beta Was this translation helpful? Give feedback.
make install
is only necessary if you have a standard installation site or you want to install your DataFrame in a system installed place. In other words, it is only necessary of you have a production system