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 » U++ TheIDE » U++ TheIDE: Packages » Add/Remove flags disfunction [BUG?]
Add/Remove flags disfunction [BUG?] [message #36414] Thu, 24 May 2012 22:05 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi,

I hit a weird behavior of the "Add/Remove flags" feature of the Package organizer. It seems totally broken to me Smile

I vaguely remember it used to work well, but now I wasn't able to add any flag no matter how many ways I tried. I even tried to look in the code of theide, tracked down all functions that manipulate with the flag variable after reading it from upp file, but I couldn't spot any place where it would be applied. Am I missing something really badly, or did this just quietly disappear from theide?

Simplistic testcase: Let's have a file
#test.cpp
#ifndef flagGUI
	#error "GUI is undefined"
#endif
#ifndef flagPOSIX
	#error "POSIX is undefined"
#endif
#ifndef flagTEST_GUI
	#error "TEST_GUI is undefined"
#endif
#ifndef flagTEST_POSIX
	#error "TEST_POSIX is undefined"
#endif
int main(){}

in a package defined by
flags(GUI) TEST_GUI;

flags(POSIX) TEST_POSIX;

file
	test.cpp;

mainconfig
	"" = "GUI";
I would expect it to pass the compilation, but what I get is
Quote:

----- flagtest ( GUI MAIN GCC DEBUG SHARED DEBUG_FULL BLITZ LINUX POSIX )
cd /home/h/MyApps/flagtest
test.cpp
c++ -c -I"/home/h/MyApps" -I"/home/h/upp.sandbox" -I"/home/h/upp-production/uppsrc" -I"/usr/include/freetype2" -I"
/usr/include/gtk-2.0" -I"/usr/include/glib-2.0" -I"/usr/lib/glib-2.0/include" -I"/usr/lib/gtk-2.0/include" -I"/
usr/include/cairo" -I"/usr/include/pango-1.0" -I"/usr/include/atk-1.0" -I"/usr/X11R6/include" -I"/usr/X11R6/inc
lude/freetype2" -I"/usr/X11R6/include/gtk-2.0" -I"/usr/X11R6/include/glib-2.0" -I"/usr/X11R6/lib/glib-2.0/inclu
de" -I"/usr/X11R6/lib/gtk-2.0/include" -I"/usr/X11R6/include/cairo" -I"/usr/X11R6/include/pango-1.0" -I"/usr/X1
1R6/include/atk-1.0" -I"/usr/include/c++/4.6.1" -I"/usr/include/c++/4.6.1/i686-pc-linux-gnu" -I"/usr/include/we
bkit-1.0" -I"/usr/include/libsoup-2.4" -I"/usr/include/libxml2" -I"/usr/include/gdk-pixbuf-2.0" -I"/usr/include
/webkit-1.0" -I"/usr/include/opencv" -DflagGUI -DflagMAIN -DflagGCC -DflagDEBUG -DflagSHARED -DflagDEBUG_FULL -
DflagBLITZ -DflagLINUX -DflagPOSIX -DbmYEAR=2012 -DbmMONTH=5 -DbmDAY=24 -DbmHOUR=21 -DbmMINUTE=59 -DbmSECOND=45
-ggdb -g2 -fexceptions -D_DEBUG -O0 -fno-PIC -x c++ "/home/h/MyApps/flagtest/test.cpp" -o "/home/h/.upp/_ou
t/MyApps/flagtest/GCC.Debug.Debug_Full.Gui.Main.Shared/test. o "
compiled in (0:00.08)
/home/h/MyApps/flagtest/test.cpp:8:3: error: #error "TEST_GUI is undefined"
/home/h/MyApps/flagtest/test.cpp:11:3: error: #error "TEST_POSIX is undefined"

I see the same problem on both Linux with gcc and windows with MSC. For windows of course use WIN32 instead of POSIX Wink

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: howto delete/remove main package?
Next Topic: Project folders recognized & listed in U++ startup list, stay organized
Goto Forum:
  


Current Time: Tue Apr 23 20:35:58 CEST 2024

Total time taken to generate the page: 0.03258 seconds