|
From: | Alexandre gaudencio |
Subject: | [libmicrohttpd] Trouble using microhttpd [compiling] |
Date: | Mon, 3 May 2010 23:43:58 +0100 |
- Downloaded the latest sources (ftp://sunsite.cnlab-switch.ch/mirror/gnu/libmicrohttpd/libmicrohttpd-0.4.6.tar.gz)So here I don't get it =/
- Runned :
tar -xvzf libmicrohttpd-0.4.6.tar.gz
cd libmicrohttpd-0.4.6
mkdir /tmp/glibmicrohttpd
./configure --prefix=/tmp/microhttpdTest
make
make install
- I copied the sample code found here (http://www.gnu.org/software/libmicrohttpd/) [http://pastebin.org/199897 just so I'm sure everyone get's the same sample]
into a plop.c file and then tried to compile like this :
address@hidden:/tmp/test $ gcc plop.c -I/tmp/glibmicrohttpd/include/ -L/tmp/glibmicrohttpd/lib/ -lmicrohttpd
In file included from plop.c:4:
/tmp/glibmicrohttpd/include/microhttpd.h:497: error: expected specifier-qualifier-list before ‘intptr_t’
/tmp/glibmicrohttpd/include/microhttpd.h:830: error: expected declaration specifiers or ‘...’ before ‘uint64_t’
/tmp/glibmicrohttpd/include/microhttpd.h:868: error: expected declaration specifiers or ‘...’ before ‘uint64_t’
/tmp/glibmicrohttpd/include/microhttpd.h:893: error: expected declaration specifiers or ‘...’ before ‘va_list’
/tmp/glibmicrohttpd/include/microhttpd.h:1085: error: expected ‘)’ before ‘size’
[Prev in Thread] | Current Thread | [Next in Thread] |