Hi at all, this is my first post on this forum, thus i think it's nice whether i introduce myself.
My real name is Nilo Redini, i came from italy (Pisa), i'm 25 years old and i'm a computer engineer.
It's a lot of time that i read this forum finding many usefull answers, so i've decided to join:)
I've a problem when i compile a curl project using netbeans (version 7.0.1) indeed when i try to build a project i receive many errors about curl library.
After few days i've discovered that the errors are due to the fact that netbeans puts the string '-lcurl' in front of the project files.
i.e. g++ -lcurl my_project.cpp
I've also discoveder that putting the string after all, all go well.
The question is: how can i do this automatically using netbeans:)?
In past i've never had problems like that so i don't know what is changed neither how can i fix this behaviour.
badnack
0
Newbie Poster
Recommended Answers
Jump to PostWhat compiler do you use on netbeans? The Netbeans itself can be a problem, since it is a Java IDE. I suggest you compile it with VC++ and then link the library to Netbeans.
Jump to PostCompiler Search Directories:
C:\Program Files (x86)\curl\includeLinker Search Directories:
C:\Program Files (x86)\curl\lib
Compiler Defines:
CURL_STATICLIBLink Libraries:
curl
rtmp
idn
ssl
ssh2
crypto
z
ws2_32
wldap32
winmm
gdi32
Linker Options:
-static
Now compile your program.. It will not give errors.
All 5 Replies
sergent
52
Posting Pro
badnack
0
Newbie Poster
badnack
0
Newbie Poster
triumphost
120
Posting Whiz
badnack
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.