Closed aframatilda closed 1 year ago
Hi,
You need to set a preprocessor macro named LINUX. You can do it by using a compiler argument (g++ .... -DLINUX) or like this (before inclusion)
#define LINUX
#include "ftpclient.h"
In fact,
The CMake build scripts take care of that but since you don't want to use CMake you have to define LINUX macro when using the class on Linux.
Hi! I want to upload an image from C++ project to a ftp server. I have created an upload function in c++ and I am working in Ubuntu Linux. The FtpClient.h file is located in my include folder, but I get "fatal error: direct.h: No such file or directory 23 | #include // mkdir".
See my code below. The param argument is a string path to the image. How should I work further? Thanks in advance!