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++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl and mingw compiler error
Re: GridCtrl and mingw compiler error [message #8756 is a reply to message #8754] Thu, 29 March 2007 09:09 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1189
Registered: March 2006
Location: Italy
Senior Contributor
unodgs wrote on Thu, 29 March 2007 08:35

Look at your upp file. What is missing ? Wink
uses
    CtrlLib;
        <<---------- there is no GridCtrl package listed here
file
    testgridbug.h,
    main.cpp,
    testgridbug.lay;

mainconfig
    "" = "GUI";




Opsss... I believed it were there because I've added it with Add Package.
Now I've added it. Then I've installed under windows the 2007.1.rc3. GridCtrl seems to be present in the package list... CTRL+F5...

main.cpp
In file included from C:/upp/uppsrc/CtrlCore/lay.h:22,
                 from C:\MyApps\testgridbug\/testgridbug.h:10,
                 from C:\MyApps\testgridbug\main.cpp:1:
C:/MyApps/testgridbug/testgridbug.lay:5: error: expected unqualified-id before numeric constant
C:/MyApps/testgridbug/testgridbug.lay:6: error: expected unqualified-id before numeric constant
In file included from C:/upp/uppsrc/CtrlCore/lay.h:35,
                 from C:\MyApps\testgridbug\/testgridbug.h:10,
                 from C:\MyApps\testgridbug\main.cpp:1:
C:/MyApps/testgridbug/testgridbug.lay: In function `void InitLayout(Upp::Ctrl&, L&, D&, testgridbugLayout__la
	yid&)':
C:/MyApps/testgridbug/testgridbug.lay:5: error: expected unqualified-id before numeric constant
C:/MyApps/testgridbug/testgridbug.lay:5: error: expected `;' before numeric constant
C:/MyApps/testgridbug/testgridbug.lay:5: error: expected unqualified-id before numeric constant
C:/MyApps/testgridbug/testgridbug.lay:6: error: expected unqualified-id before numeric constant
C:/MyApps/testgridbug/testgridbug.lay:6: error: expected `;' before numeric constant
C:/MyApps/testgridbug/testgridbug.lay:6: error: expected unqualified-id before numeric constant
C:/upp/uppsrc/GridCtrl/GridCtrl.h: At global scope:
C:/upp/uppsrc/GridCtrl/GridCtrl.h:870: warning: inline function `Upp::Item& Upp::GridCtrl::GetItem(int, int)'
	 used but never defined
testgridbug: 1 file(s) built in (0:07.96), 7968 msecs / file, duration = 7984 msecs

There were errors. (0:08.25)


In attached there is the package. In MSC8 it works. Perhaps is the too long string in lay file regarding the gridctrl or the order in which the methods are listed that cause problem to Mingw Rolling Eyes

Luigi
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrong display in arrayctrl
Next Topic: GridCtrl and AttrText
Goto Forum:
  


Current Time: Sat Jun 08 23:47:04 CEST 2024

Total time taken to generate the page: 0.01876 seconds