|
|
Home » U++ TheIDE » U++ TheIDE: Packages » Add/Remove flags disfunction [BUG?]
Add/Remove flags disfunction [BUG?] [message #36414] |
Thu, 24 May 2012 22:05 |
|
Hi,
I hit a weird behavior of the "Add/Remove flags" feature of the Package organizer. It seems totally broken to me
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
Best regards,
Honza
|
|
|
|
|
Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: mirek on Mon, 28 May 2012 18:36
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Wed, 19 March 2014 20:24
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: omari on Thu, 20 March 2014 00:46
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 09:52
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 18:00
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 18:19
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 20:32
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 21:26
|
|
|
Re: Add/Remove flags disfunction [BUG?]
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 21:33
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: Alboni on Thu, 20 March 2014 21:36
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: piotr5 on Mon, 14 April 2014 10:37
|
|
|
Re: Add/Remove flags disfunction [BUG?]
By: mirek on Sat, 27 September 2014 18:11
|
Goto Forum:
Current Time: Tue Apr 23 20:35:58 CEST 2024
Total time taken to generate the page: 0.03258 seconds
|
|
|