ich habe ein Programm in C++ geschrieben und in meinem Programm curl verwendet. Nun wollte ich es kompilieren mit:
Code: Alles auswählen
g++ -Wall main.cpp `pkg-config --cflags --libs libcurl3` -o main
Code: Alles auswählen
betaros@Chef:~/Entwicklung/facebook$ ./facecompile
Package libcurl3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl3' found
/tmp/ccKpJuHs.o: In function `getsource(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
main.cpp:(.text+0x28c): undefined reference to `curl_easy_init'
main.cpp:(.text+0x2be): undefined reference to `curl_easy_setopt'
main.cpp:(.text+0x2e3): undefined reference to `curl_easy_setopt'
main.cpp:(.text+0x2ef): undefined reference to `curl_easy_perform'
main.cpp:(.text+0x2fe): undefined reference to `curl_easy_cleanup'
collect2: ld returned 1 exit status
Package libcurl3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl3' found
Ich nutze Debian Squeeze und G++ 4.4.
Freue mich über jede Antwort!
mfg
betaros
Kleines Edit:
Habe noch libcurl4-openssl-dev installiert... Vielleicht hilft das ja...