Re: migration: next step



On Tue, Jul 18, 2006 at 08:00:43PM -0600, Mark Kegel wrote:
> I'm pretty sure that some of those examples don't have a main()
> function in the file. I know I found that when trying to compile some
> of the example code shipped with gtk. Just write a simple main, like
> the one I have below:
<snip>

#include <stdblunders.h.>

int main(int ARGGGGHHH, char *MORE_ARGGGH[]) 
{
	void *duh;  
	
	duh = slaps_forhead(); /* declared in stdblunders.h */ 

	return EMBARRASSED_AGAIN /* also declared in stdblunders.h */ 
}

Well, after wrestling with this last night and posting this morning, I
forgot that I hadn't done the scribble apps.  They both had main
functions and both compiled without comment (well, had to remove the
spurious 'void' from scribble-xinput).  And yes, the others have no main
functions... and I now recall thinking something was missing last night.

So my homework is to write main functions for the other two.  Off I
go...

Thanks again for your newbie tolerance :)

Bill Tallman




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