|
|
Home » Community » Newbie corner » Errors during compiling the examples
( ) 1 Vote
Errors during compiling the examples [message #42086] |
Tue, 18 February 2014 16:25  |
Yeti86
Messages: 10 Registered: February 2014
|
Promising Member |
|
|
Hello everybody,
I'm new to GUI programming and Ultimate++.
#include <CtrlLib/CtrlLib.h>
//#define _WIN32_WINNT 0x501
using namespace std;
using namespace Upp;
GUI_APP_MAIN {
PromptOK("Hello world");
}
I tried at first to compile the examples. Unfortunately I get errors in the example above:
D:\upp\uppsrc\Core\Socket.cpp: In function 'int Upp::sGetAddrInfo(const char*, const char*, addrinfo**)':
D:\upp\uppsrc\Core\Socket.cpp:44:47: error: 'getaddrinfo' was not declared in this scope
return getaddrinfo(host, port, &hints, result);
^
D:\upp\uppsrc\Core\Socket.cpp: In static member function 'static DWORD Upp::IpAddrInfo::Thread(void*)':
D:\upp\uppsrc\Core\Socket.cpp:65:24: error: 'freeaddrinfo' was not declared in this scope
freeaddrinfo(result);
I'm compiling with MinGW. What do I have to do?
Regards
Marco
|
|
|
|
|
|
|
|
|
|
Re: Errors during compiling the examples [message #42098 is a reply to message #42097] |
Wed, 19 February 2014 06:50   |
|
Yeti86 wrote on Wed, 19 February 2014 01:58 | After installing Visual Studio Express 2010 and Windows SDK:
Everything compiles properly, but still my questions about the platform independency remain:
Where is the advantage to use Ultimate++ when I have to use a Visual C++ compiler? Is my Code really platform independed?
Am I really forced to use the VC compiler?
I would be glad for a discussion about this topic!! Or is there already another one in the forum?
Good night!
Yeti
|
Hi Yeti,
Don't worry, U++ is as platform independent as possible. There is many people using mingw. By the way, they say that it works much better with the TDM mingw. AFAIK mingw is not officially supported on windows, but it should work. Also, I think you can use Clang compiler on windows. Even the Open Watcom compiler should have some support in TheIDE.
But the real beauty of platform independence is that once you have a working U++ code on windows, you can simply compile it on Linux or BSD, or vice versa. There are even people who develop (and even compile ) Windows applications on Linux 
Best regards,
Honza
|
|
|
|
|
|
Re: Errors during compiling the examples [message #44309 is a reply to message #42086] |
Sat, 21 February 2015 18:39   |
 |
Edward
Messages: 34 Registered: February 2015 Location: United States
|
Member |
|
|
Yeti86
Quote:Where is the advantage to use Ultimate++ when I have to use a Visual C++ compiler? Is my Code really platform independent?
Am I really forced to use the VC compiler?
I am setting up to convert multiple 13 year old healthcare VB6 apps to C++, and I'm determined to break away from Microsoft, the upgrade frenzy, and the .Net Framework overhead. So my updated apps will be running on Linux boxes, micro/nano ATX boards, small Windows free installs that we could make 1,000,000 of without being required to buy a windows license fee to be legal.
So the apps you develop on U++ can be built/compiled for/on Linux or Windows or OSX, either. So I send you a project folder and you choose which platform to build/compile, and deploy the app.
I believe our future is platform neutral, like Net Neutrality, able to run on any platform.
This is why I have fought so strongly to get a couple example projects debugged using MinGW while everyone is suggesting I get MS VS and my problems will be over.
My mission is to find a powerful(Non MS) C++ IDE w/GUI to marry and spend the rest of my life with...
[Updated on: Sat, 21 February 2015 18:43] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 20:32:19 CEST 2025
Total time taken to generate the page: 0.00998 seconds
|
|
|