-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jean-Francois Dive wrote:

| la question est de savoir comment mettre ca dans ton programme C, le
| truc de configure n'est qu'un probleme on top je dirais. Pour se faire,
| le plus simple est d'utiliser un define definis a la compilation; genre
|

Je suis arriv� � source plutot comme ceci

#ifndef BASE_CONFIG
#define BASE_CONFIG "/defined/in/source"
#endif

#include <stdio.h>

int main(int argc, char *argv[])
{
~     unsigned char *p = BASE_CONFIG;
~     printf("Path is %s\n", p);

~     return 0;
}

et pour passer le nom � pr�processeur, j'ai rajout� les doubles quotes:
~ gcc -o main main.c -D BASE_CONFIG="\"/etc/foo\""

Ca fonctionne tr�s bien, merci Jef!!


- -- Fabian Vilers Information & Communication Technology Manager

Mobile: +32 (0)475 96 12 11
E-Mail: [EMAIL PROTECTED]
http://www.keyware.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/aqpI3Qzx239StfYRAsAPAJ9tuksVZR5bYM4ASPbR23pw5+j3LgCeI+it
pCLDCAya9+dxVAMG2PQZuTY=
=0Yst
-----END PGP SIGNATURE-----
_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à