|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
error compiling a C script with gcc and audiereHi,
I receive an error when trying to compile a basic C script with gcc after installing audiere-1.9.4.tar.gz on fedora 6 (my script simply tries to 'include' the audiere library): #include <stdio.h> #include "audiere.h" using namespace audiere; int main(int argc, char *argv[]) { printf("testing audiere with gcc and a C script\n"); return 0; } I am using gcc version 4.1.1-30 and the compile directive 'gcc -o oggc ogg.c -laudiere'. The following error occurs: /usr/local/include/audiere.h:29:18: error: vector: No such file or directory /usr/local/include/audiere.h:30:18: error: string: No such file or directory /usr/local/include/audiere.h:38:4: error: #error Audiere requires C++ In file included from ogg.c:5: /usr/local/include/audiere.h:70: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘audiere’ ogg.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘namespace’ The same error occurs when I use audiere-1.9.3.tar.gz. Earlier versions of audiere (1.9.2, 1.9.1, 1.9.0) do not compile on my fedora 6 system. The above output 'Audiere requires C++' is somewhat confusing as various sites indicated that audiere can be used in C. Since I would like to use audiere with the C language (and not C++), can anyone tell me how to compile a C script using the audiere library on my fedora 6 system? Thank you. Nicholas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Audiere-users mailing list Audiere-users@... https://lists.sourceforge.net/lists/listinfo/audiere-users |
|
|
Re: error compiling a C script with gcc and audierenn222@... wrote:
> I receive an error when trying to compile a basic C script with gcc > after installing audiere-1.9.4.tar.gz on fedora 6 (my script simply > tries to 'include' the audiere library): Audiere is a C++ library, not C. You need to use a C++ compiler (like g++). Enno. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Audiere-users mailing list Audiere-users@... https://lists.sourceforge.net/lists/listinfo/audiere-users |
|
|
Re: error compiling a C script with gcc and audiere
Thanks for the response. Nicholas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Audiere-users mailing list Audiere-users@... https://lists.sourceforge.net/lists/listinfo/audiere-users |
| Free embeddable forum powered by Nabble | Forum Help |