Fork Problem 2



Hi,

(sorry for my bad english)
I'm a C-newbie and I have this problem. Same situation prev email "Fork
Problem".

Now, if I wanna add undefined number of options for gcc to pass in "g_spawn_async_with_pipes":

gchar **options;

options = g_strsplit (string," ",-1);

(for "string" example program gets: "gcc -c -f -h -j ..." an undefined number
of options 10 100 1000 etc.)


 g_spawn_async_with_pipes (
  				NULL,
				options,
				NULL,
				.....
			   );

g_strsplit returns a NULL-terminated array of strings, I suppose correct
"form" for "g_spawn_async_with_pipes" but program returns with "SEG FAULT".
Can u help me?

Thank you very much
Frances

__________________________________________________________________
Tiscali ADSL, fino a 9 MESI GRATIS sull'offerta Tiscali ADSL Light Mega!
Tiscali ADSL non teme confronti! Abbonati subito.
http://point.tiscali.it/adsl/index.shtml






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]