Re: compiling with librsvg
Ulrich Mierendorff <[email protected]>
| Newsgroups | gmane.comp.gnome.lib.librsvg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
That sounds good, but doesnt work :-(, same error...
My Program is now very minimal just
#include <librsvg/rsvg-cairo.h>
int main() {
return 0;
}
Gives always the same error as described before.
-Ulrich
Dominic Lachowicz schrieb:
> Hi,
>
> Try using pkg-config to get the list of cflags and libs.
>
> gcc `pkg-config --cflags --libs librsvg-2.0` example.c
>
> Dom
>
> On 4/16/07, Ulrich Mierendorff <[email protected]> wrote:
>> Hi,
>> I am new to the library and tried to include it into my program:
>> [...]
>> #include <librsvg/rsvg-cairo.h>
>> [...]
>>
>> and compile it with this line on a debian (sid) box:
>>
>> gcc -I/usr/include/cairo -I/usr/include/librsvg-2 -lGL -lGLU
>> -lrsvg-cairo ./example.c
>>
>> I get theese errors:
>> In file included from ./example.c:9:
>> /usr/include/librsvg-2/librsvg/rsvg-cairo.h:32: error: expected '=',
>> ',', ';', 'asm' or '__attribute__' before 'void'
>> /usr/include/librsvg-2/librsvg/rsvg-cairo.h:36: error: expected ')'
>> before '*' token
>> ./example.c:15: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>>
>> Can anyone point to a mistake I made?
>>
>> Thanks in Advance!
>>
>> -------------------------------------------------------------------------
>>
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Librsvg-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/librsvg-devel
>>
>
>
--
[email protected]
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/