View Single Post
  #1 (permalink)  
Old 05-27-2004
Jonathan Dzoba Jonathan Dzoba is offline
Registered User
 
 
Join Date: May 2004
Posts: 3
Question Application.h compiler error on int main(int, char*[], const char* = 0);

I moved from ICE V1.2 to ICE V1.4 and got the following compile error under Visual Studio .NET 2002.

C:\Ice-1.4.0\include\Ice\Application.h(33) : error C2668: 'Ice::Application::ace_main_i' : ambiguous call to overloaded function
C:\Ice-1.4.0\include\Ice\Application.h(33): could be 'int Ice::Application::ace_main_i(int,char *[],const char *)'
C:\Ice-1.4.0\include\Ice\Application.h(33): or 'int Ice::Application::ace_main_i(int,char *[])'
while trying to match the argument list '(int, char *[])'

V1.2 of Application.h has:

int main(int, char*[], const char*);

V1.4 has:

int main(int, char*[], const char* = 0);

Removing the ' = 0' fixes the compile error and I believe is benign if you're not using what I presume is the environment variable pointer, but I thought I'd check.

Thanks,
Jonathan
__________________
Jonathan Dzoba
Senior Software Engineer
Texas Instruments Incorporated
Stafford, Texas 77477
(281)274-4021
j-dzoba1@ti.com
Reply With Quote