mrtazz / restclient-cpp

C++ client for making HTTP/REST requests
http://code.mrtazz.com/restclient-cpp/
MIT License
1.57k stars 377 forks source link

Cannot open include file: 'restclient-cpp/version.h' #84

Closed atef201080 closed 7 years ago

atef201080 commented 7 years ago

I'm getting Cannot open include file: 'restclient-cpp/version.h' is there a missing file? or i missed something ?

mrtazz commented 7 years ago

can you please give more details how you are using the library? The version file is installed via a step in the Makefile and should be build as soon as you have run make.

atef201080 commented 7 years ago

yea, I'm sorry. I'm new to C++. I tried to build it but with cygwin on windows it gave me .a library which is linux library not a .lib files.. when i tried with mingw it gave me errors.. is there an available compile guide or something i can follow..

mrtazz commented 7 years ago

No worries. There is a quick overview in the README. However compilation on Windows is known to have some problems which I haven't gotten to yet, mostly because I don't have a Windows machine. Anything you find out that needs to be fixed would be super useful.

mrtazz commented 7 years ago

closing this for inactivity. Please feel free to reopen the issue if the problem persists.

ArosPrince commented 5 years ago

I have the same issue. You said it should be generated during the build process. Well, I see the m4 file. So do I have to install cygwin on Windows? Seems quite an overkill...

//Edit: BTW I could generate the file on my own, but I have no idea what to put in RESTCLIENT_VERSION string

mrtazz commented 5 years ago

How are you building this right now? As you said you can generate it yourself (version is based on the AC_INIT version, see https://github.com/mrtazz/restclient-cpp/blob/master/Makefile.am)

On 15. Dec 2018, at 20:28, ArosPrince notifications@github.com wrote:

I have the same issue. You said it should be generated during the build process. Well, I see the m4 file. So do I have to install cygwin on Windows? Seems quite an overkill...

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

ArosPrince commented 5 years ago

Hm, I think I ended up using websockets++ instead, but anyway I think it was not important what was in the string version, it worked for my purposes anyway.

But I don't see any AC_INIT in the file you posted...

mrtazz commented 5 years ago

right, sorry I posted a link to where VERSION is used. The actual definition of AC_INIT is here https://github.com/mrtazz/restclient-cpp/blob/master/configure.ac#L2