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 » Again about packages
Re: Again about packages [message #12152 is a reply to message #11931] Sat, 13 October 2007 11:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mdelfede wrote on Mon, 01 October 2007 18:14

luzr wrote on Mon, 01 October 2007 15:26


Package organizer, bottom right table, right-click (but you have to have the file selected in bottom left table).
..............
Yes. Anything in package organizer can have When condition.



Uhhmmmm... package options work well, per-file options don't.
Setting verbose mode shows that compiler is called for file without the per-file options....
For example :
In package options, I have :
when          compiler options
<blank>       -ffunction-sections  -fPIC -funsigned-char -Wall -fmessage-length=0 -DLIN -DLININTEL -DOCC_CONVERT_SIGNALS  -DNOPROTECTION -DCSFDB -DHAVE_WOK_CONFIG_H  -DHAVE_CONFIG_H -DNDEBUG -DNo_Exception -MD

In bottom-left table, selecting the file, I have :
when          additional compiler options for the file
<blank>       -ffriend-injection -fpermissive

and the compile line for the file is
Underflow_0.cxx
c++ -c  -I"/home/massimo/sources/upp/OpenCascade" -I"/home/massimo/sources/upp/uppsrc" -I"/usr/include/freety
	pe2" -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" -DflagMAIN -DflagGCC
	 -DflagDEBUG -DflagSHARED -DflagDEBUG_FULL -DflagBLITZ -DflagLINUX -DflagNOLIB -DbmYEAR=2007 -DbmMONTH=10
	 -DbmDAY=2 -DbmHOUR=0 -DbmMINUTE=5 -DbmSECOND=52 -ggdb -g2 -ffunction-sections  -fPIC -funsigned-char -Wa
	ll -fmessage-length=0 -DLIN -DLININTEL -DOCC_CONVERT_SIGNALS  -DNOPROTECTION -DCSFDB -DHAVE_WOK_CONFIG_H 
	 -DHAVE_CONFIG_H -DNDEBUG -DNo_Exception -MD -fexceptions  -D_DEBUG -O0 -x c++ "/home/massimo/sources/upp
	/OpenCascade/FoundationClasses/Standard/drv/Underflow_0.cxx" -o "/home/massimo/sources/upp/out/Foundation
	Classes/Standard/GCC.Debug_full.Main.Shared/Underflow_0.o"


so no --ffriend-injection .... in compiler command line.

Ciao

Max

EDIT : well, for now I'll resort with global package options, the only drawback are some warnings on plain c files.



Strange, I have checked to be sure and it seems to work:

----- Chess ( GUI ST XX MAIN MSC71 WIN32 MSC ) (9 / 9)
cl : Command line warning D4024 : unrecognized source file type 'asdfasdf', object file assumed
cl : Command line warning D4027 : source file 'asdfasdf' ignored


Can you please post here your .upp file? (In package directory).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debugging of tables, vector, etc.
Next Topic: Getting "heap leaks detected!" error messages on program exit. How to debug it?
Goto Forum:
  


Current Time: Thu Aug 28 09:29:34 CEST 2025

Total time taken to generate the page: 0.06748 seconds