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: Compiling, Linking, Debugging of your packages » Different results from same code&settings
Re: Different results from same code&settings [message #18045 is a reply to message #18042] Mon, 08 September 2008 00:15 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Thanks for suggestions. I did more testing and I think I found the reason of the problem... I checked the MD5 checksums of all files in package folder to those in backup - the only diferent was .upp file. After checking them in text editor I found that the only difference is in the order of files in file section.
I realized that I was playing with the order before (just to make them look organized Smile ). I tested if this is it by executing "rebuild all" command in release mode with different ordering of files... and it was really it.
Now I must admit that my project is not exactly "ussual" use of theIde. I'm using Bison&Flex trough "Custom build steps" so that must be the cause - somewhat wrong order of parsing and compiling files...
Only thing that still puzzles me is that the report in console always shows the .y & .l files beeing parsed before compilation of their output .cpp's. Here is the output if it helps:
----- Core ( GCC SHARED LINUX ) (1 / 3)
cd /media/hda6/upp/uppsrc/Core
----- plugin/pcre ( GCC SHARED LINUX ) (2 / 3)
cd /media/hda6/upp/uppsrc/plugin/pcre
----- Fam_a3.3 ( MAIN GCC SHARED LINUX ) (3 / 3)
cd /media/hda6/MyUppApps/Fam_a3.3
parser.y
bison++ -d --verbose -h parser.h -o parser.cpp parser.y
bison++ -d --verbose -h parser.h -o parser.cpp parser.y
Exitcode: 0
scanner.l
flex++ -d -o scanner.cpp scanner.l
flex++ -d -o scanner.cpp scanner.l
Exitcode: 0
Fam_a3.3.cpp
g++-4.1 -c  -I"/media/hda6/MyUppApps" -I"/media/hda6/upp/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"/u
	sr/include/pango-1.0" -I"/usr/include/atk-1.0" -DflagMAIN -DflagGCC -DflagSHARED -DflagLINUX -DbmYEAR=2008 -DbmMO
	NTH=9 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=40  -fexceptions  -Os -finline-limit=20 -x c++ "/media/hda6/
	MyUppApps/Fam_a3.3/Fam_a3.3.cpp" -o "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/Fam_a3.3.o"
g++-4.1 -c  -I"/media/hda6/MyUppApps" -I"/media/hda6/upp/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"/u
	sr/include/pango-1.0" -I"/usr/include/atk-1.0" -DflagMAIN -DflagGCC -DflagSHARED -DflagLINUX -DbmYEAR=2008 -DbmMO
	NTH=9 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=40  -fexceptions  -Os -finline-limit=20 -x c++ "/media/hda6/
	MyUppApps/Fam_a3.3/Fam_a3.3.cpp" -o "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/Fam_a3.3.o"
compiled in (0:02.17)
parser.cpp
g++-4.1 -c  -I"/media/hda6/MyUppApps" -I"/media/hda6/upp/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"/u
	sr/include/pango-1.0" -I"/usr/include/atk-1.0" -DflagMAIN -DflagGCC -DflagSHARED -DflagLINUX -DbmYEAR=2008 -DbmMO
	NTH=9 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=40  -fexceptions  -Os -finline-limit=20 -x c++ "parser.cpp" 
	-o "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/parser.o"
g++-4.1 -c  -I"/media/hda6/MyUppApps" -I"/media/hda6/upp/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"/u
	sr/include/pango-1.0" -I"/usr/include/atk-1.0" -DflagMAIN -DflagGCC -DflagSHARED -DflagLINUX -DbmYEAR=2008 -DbmMO
	NTH=9 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=40  -fexceptions  -Os -finline-limit=20 -x c++ "parser.cpp" 
	-o "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/parser.o"
compiled in (0:04.20)
scanner.cpp
g++-4.1 -c  -I"/media/hda6/MyUppApps" -I"/media/hda6/upp/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"/u
	sr/include/pango-1.0" -I"/usr/include/atk-1.0" -DflagMAIN -DflagGCC -DflagSHARED -DflagLINUX -DbmYEAR=2008 -DbmMO
	NTH=9 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=40  -fexceptions  -Os -finline-limit=20 -x c++ "scanner.cpp"
	 -o "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/scanner.o"
g++-4.1 -c  -I"/media/hda6/MyUppApps" -I"/media/hda6/upp/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"/u
	sr/include/pango-1.0" -I"/usr/include/atk-1.0" -DflagMAIN -DflagGCC -DflagSHARED -DflagLINUX -DbmYEAR=2008 -DbmMO
	NTH=9 -DbmDAY=7 -DbmHOUR=23 -DbmMINUTE=47 -DbmSECOND=40  -fexceptions  -Os -finline-limit=20 -x c++ "scanner.cpp"
	 -o "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/scanner.o"
compiled in (0:02.64)
Fam_a3.3: 5 file(s) built in (0:08.83), 1766 msecs / file, duration = 9766 msecs
Linking...
g++-4.1 -o "/media/hda6/MyUppApps/out/GCC.Shared/Fam_a3" -Wl,-s -L"/usr/X11R6/lib" -Wl,-O,2  "/media/hda6/MyUppApps/o
	ut/Fam_a3.3/GCC.Main.Shared/Fam_a3.3.o" "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/parser.o" "/media/hda
	6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/scanner.o" -Wl,--start-group  -lpthread -ldl -lz "/media/hda6/MyUppApps/
	out/Core/GCC.Shared/Core.a" "/media/hda6/MyUppApps/out/plugin/pcre/GCC.Shared/pcre.a" -Wl,--end-group
g++-4.1 -o "/media/hda6/MyUppApps/out/GCC.Shared/Fam_a3" -Wl,-s -L"/usr/X11R6/lib" -Wl,-O,2  "/media/hda6/MyUppApps/o
	ut/Fam_a3.3/GCC.Main.Shared/Fam_a3.3.o" "/media/hda6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/parser.o" "/media/hda
	6/MyUppApps/out/Fam_a3.3/GCC.Main.Shared/scanner.o" -Wl,--start-group  -lpthread -ldl -lz "/media/hda6/MyUppApps/
	out/Core/GCC.Shared/Core.a" "/media/hda6/MyUppApps/out/plugin/pcre/GCC.Shared/pcre.a" -Wl,--end-group
Exitcode: 0
/media/hda6/MyUppApps/out/GCC.Shared/Fam_a3 (622112 B) linked in (0:01.05)

OK. (0:11.00)
"/media/hda6/MyUppApps/out/GCC.Shared/Fam_a3" 
/media/hda6/MyUppApps/out/GCC.Shared/Fam_a3 
Error executing /media/hda6/MyUppApps/out/GCC.Shared/Fam_a3 
Exitcode: 1006

I'm really glad to see, that it's not a bug in theIde Smile I can just keep it in the right order (which is BTW any where parser.y is above Fam_a3.3.cpp), it's no problem. Sorry for taking your time and thanks for pointing me in the right way Wink

Honza
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: App window does not show up when run in Run_options/Console
Next Topic: Import From Visual studio 6
Goto Forum:
  


Current Time: Sun May 12 02:07:34 CEST 2024

Total time taken to generate the page: 0.02142 seconds