undefined reference to 'WinMain@16'

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

 



>>> Do you have a main(int argc, char *argv[]) function defined?

>> Yes,
>>
>> pj_status_t app_init(int argc, char *argv[])
>>
>> {
>> then pjsua_start(),application callbacks, initlaization of pjsua etc etc
>>
>>
>> }

One thing at a time - you've got two different errors. Your first
problem is because you don't have a main() method.

You need a function literally named "main" which takes int and a
char*[] arguments (or one which takes no arguments, but you can ignore
that for now) that serves as the entry point to your program (or else
how does the linker know which instruction you wanted to execute
first?)

It looks like you want to add the following:

int main(int argc, char *argv[])
{
    app_init(argc, argv);
    return 0;
}




> Alright I re-compiled this time my error:
> In function 'parse-args'
> error: structure has no member named 'stun-config'
>
> Where/how  do I declare 'stun-config'?

"stun-config" isn't a valid identifier - it has a minus sign in it.
What are you trying to do?



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux