argc and argv problem
Jeff Lacki
jeep at rahul.net
Thu Apr 24 09:32:03 PDT 2008
Hi-
Ive been trying to implement wxCmdLineParser.
It didnt want to work so I fell back to trying to
see what argc and argv were and it turns out there
is my problem.
In my App it seems that argc and argv arent there.
My app ctor:
MyApp::MyApp() :
wxApp()
{
printf("argc = %d\n",argc);
printf("argv[0] = %s\n",argv[0]);
}
When I run the debugger and try to print argc,
it says:
No symbol "argc" in current context.
the argv line SEGV's for the same reason.
Im using this under Linux, but it shouldnt matter.
Can someone tell me what Im doing wrong?
Thanks,
Jeff
More information about the wx-users
mailing list