Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » why "___main: duplicate" ?
Re: why "___main: duplicate" ? [message #12771 is a reply to message #12768] Thu, 15 November 2007 14:21 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1207
Registered: March 2006
Location: Italy
Senior Contributor
alex100 wrote on Thu, 15 November 2007 10:23

Hi Luigi

Ok, I, for a moments, forgot that U++ is a great tool and I forgot that is works in many operating systems, it has lost of versions and so one.

So, I am using WinXP, upp-mingw-2007.1.exe

Well, the "__main: duplicate" is happening for me for many times and the compilation of MyUppApp that I downloaded from this forum also presents that link error. There is the 7z file with the application in attachment.

This error cames up also when I try to include database capabilities to the "HelloWorld-Rudimentary HelloWorld application with menu and status bar" example that cames with upp. Please, tell me where can I find information related with:
Which includes are needed to create and open a SQlite database in the HelloWorld Main Window?

Thank you

Alex



Hi Alex,

as said Luzr the problem is with the compiler. I got the same error. In particular MyUppApp use some code that doesn't like to mingw compiler and I guess related to the function "PathAppend". In the past I compiled it with MSC8 and worked OK.
Now I commented all the blocks in which appear PathAppend

#ifdef flagWIN32
TCHAR szPath[MAX_PATH];
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath);
PathAppend(szPath,"MyUppApp");
PathAppend(szPath, cfgfile);
fullpathtocfgfile = szPath;
#else
fullpathtocfgfile = cfgfile;
#endif

and the program compile and run although at runtime signal some problem. Please try yourself. Moreover do not stop to do test other packages and if something is not clear come back and ask.

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RegComFiles tool...
Next Topic: Vega 5 RR
Goto Forum:
  


Current Time: Sat Jun 14 20:51:26 CEST 2025

Total time taken to generate the page: 0.04421 seconds