|
|
Home » Community » Newbie corner » [SOLVED]Deleted layout controls still cause errors in compile. How? 8183 MinGW (Strange problems building a CodeProject U++ tutorial, MingW & Windows)
[SOLVED]Deleted layout controls still cause errors in compile. How? 8183 MinGW [message #44280] |
Thu, 19 February 2015 17:20 |
|
Edward
Messages: 34 Registered: February 2015 Location: United States
|
Member |
|
|
Maybe this is because I'm new to U++, but I have successfully built & compiled numerous GUI example projects, and simple ones I created.
Using this tutorial http:// www.codeproject.com/Articles/15163/Getting-Started-With-Ulti mate?msg=5005237 I initially created the project as instructed (named SimpleDemo),(with layout controls only) with no compile/build errors. But after adding the full specified code things blew up.
The big problem is, after I deleted all new controls from the layout and code to backtrack, the compiler continued to list the controls and numerous errors.
Could this be a settings issue? Should I be able to delete objects? Then I ran the full original complete project package as downloaded and it too had endless errors.
U++ then uninstalled & re-installed, all examples compile & build perfect again.
I must also say, I can be compiling included examples such as Days or HomeBudget and executing perfectly, but after I try to compile the SimpleDemo example, it breaks U++ build. U++ then will Not build/compile any of the included examples without immediate Errors again, no files created.
Compile report attached.
Any advice appreciated.
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 17:56] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Deleted layout controls still cause errors in compile. How? 8183 MinGW [message #44291 is a reply to message #44280] |
Fri, 20 February 2015 19:38 |
|
Edward
Messages: 34 Registered: February 2015 Location: United States
|
Member |
|
|
Quote:I do not see "firstGUI" class in your project? Did you put "using namespace Upp;" in your .cpp file?
Yes. See lower.
Klugier
I am testing build on your updated project.
For some reason my Builds are taking over 30 minutes time.
They were much faster previously.
Please check back to this message for updates.
-----------------
Results
"Fatal error: SimpleDemo/SimpleDemo.lay: No such file or directory"
Build message results attached.
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: Fri, 20 February 2015 19:56] Report message to a moderator
|
|
|
Re: Deleted layout controls still cause errors in compile. How? 8183 MinGW [message #44292 is a reply to message #44291] |
Fri, 20 February 2015 21:22 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello Edward,
It is hard to say what is wrong. For me the code of this package seems to be OK. On my OS (Kubuntu 14.04 - GNU/Linux - GCC 4.8 ) it compiles perfectly. So, semantic is definitely OK.
Quote:
For some reason my Builds are taking over 30 minutes time.
They were much faster previously.
Yes, because it compiles all U++ packages. Previously you had only errors (Compilation process was not started).
Maybe it is compiler related problem. Did you try to use TheIDE with Visual Studio? Don't take my wrong I have never used GCC or MinGW with U++ on Windows. So I am definitely not expert in this area. Maybe someone else will know.
At the end I would like to enclose my version (which is probably the same as previous). You can also try "Rebuild all" options (Bomb on toolbar).
Sincerely,
Klugier
[Updated on: Fri, 20 February 2015 21:36] Report message to a moderator
|
|
|
|
Re: Deleted layout controls still cause errors in compile. How? 8183 MinGW [message #44294 is a reply to message #44280] |
Fri, 20 February 2015 22:43 |
|
Edward
Messages: 34 Registered: February 2015 Location: United States
|
Member |
|
|
So the problem may be with the MinGW I'm using?
This really worries me, it seems to be a rare anomaly. Hopefully someone (or a U++ developer) using Windows will MingW with U++ respond.
I will be more than happy to make a funding donation if I can get these issues resolved, and know U++ is reliable. I'm trying to avoid Microsoft VS products because will be moving to Linux with UU+. My application will reside on Linux box later then too.
I must get to work ASAP on converting a 2002 VB6 healthcare application to C++.
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 00:34] Report message to a moderator
|
|
|
|
|
|
|
Re: Deleted layout controls still cause errors in compile. How? 8183 MinGW [message #44299 is a reply to message #44298] |
Sat, 21 February 2015 01:27 |
|
Klugier
Messages: 1076 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello,
It seems that Koldo is right. It should look like this (in your case, I don't know why you created this directory):
SimplyDemo.h
#ifndef _SimpleDemo_SimpleDemo_h
#define _SimpleDemo_SimpleDemo_h
#include <CtrlLib/CtrlLib.h>
NAMESPACE_UPP
#define LAYOUTFILE <newSimpleDemo/SimpleDemo/SimpleDemo.lay>
#include <CtrlCore/lay.h>
class SimpleDemo : public WithSimpleDemoLayout<TopWindow> {
void AddItem();
public:
typedef SimpleDemo CLASSNAME;
SimpleDemo();
};
END_UPP_NAMESPACE
#endif
Council for the future. You shouldn't put two directories in your project tree. It can led to problems.
So the tree should look like this:
- MyApps
- SimplyDemo
- SimpleDemo.h
- etc.
Insted of:
- MyApps
- SimplyDemo
- newSimpleDemo
- SimpleDemo.h
- etc.
Sincerely,
Klugier
U++ - one framework to rule them all.
[Updated on: Sat, 21 February 2015 01:27] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri May 03 00:31:40 CEST 2024
Total time taken to generate the page: 0.03576 seconds
|
|
|