Solved Cannot compile
-
@El_Professor said in Cannot compile:
I'm no Mac user, but these lines looks suspicious to me:
ld: warning: object file (/Users/jordanbarbe/go-workspace/Project/libRequests/libRequests.a(Request.o)) was built for newer OSX version (10.13) than being linked (10.10)
ld: warning: object file (/Users/jordanbarbe/go-workspace/Project/libRequests/libRequests.a(Headers.o)) was built for newer OSX version (10.13) than being linked (10.10)
ld: warning: object file (/Users/jordanbarbe/go-workspace/Project/libRequests/libRequests.a(Response.o)) was built for newer OSX version (10.13) than being linked (10.10)ld: symbol(s) not found for architecture x86_64
Did you get the library pre-compiled? From where? Can you build it yourself?
-
Hi, yes I compiled the library well before. I have my request.a file and 3 header files. I added the library via Qt with a right click on the project then "add a new library" .
So I was looking for the library in my computer in another folder in Qt. I selected external library.thanks you
-
@El_Professor said in Cannot compile:
Hi, yes I compiled the library well before.
Hmm, so why does the linker complains:
ld: warning: object file [..] was built for newer OSX version (10.13) than being linked (10.10)
Maybe a Mac user can help you more in that regard.
-
I don't know exactly. I only cloned the above mentioned repository. and then made a Make in this repository which directly creates a libRequests.a file for me.
-
It seems that library handles HTTP requests. Any reason you don't use Qt's QNetworkAccessManager?
-
I don't know. I thought we couldn't deal with it?
thanks you for reply
-
@El_Professor So what do you want to do exactly?
-
I'm learning. So I try to get a web page for example from a game and then connect to that game via the c++/Qt code.
-
@El_Professor so why can't you use QNetworkAccessManager?
-
In fact a friend explained to me that he was using this library I thought I would take the same one. I forgot Qt can do it. Thank you for your response. I already started my program with this class. And I can do the same thing with librequest for lib.a.
sorry for the inconvenience