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: Installation, Compiling and Running of theide » undefined reference to `CtrlsImg::Get(int)
undefined reference to `CtrlsImg::Get(int) [message #4009] Fri, 14 July 2006 22:05 Go to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
When I compiled ide under Ubuntu, I got the following errors.




/home/jc/upp/out/CtrlLib/GCC32-Gcc32-Gui-Linux/CtrlLib.a(Lab elBase.o): In function `CtrlsImgLook(int)':
LabelBase.cpp:(.text._Z12CtrlsImgLooki+0x38): undefined reference to `CtrlsImg::Get(int)'
/home/jc/upp/out/CtrlLib/GCC32-Gcc32-Gui-Linux/CtrlLib.a(But ton.o): In function `Option::GetMinSize() const':
Button.cpp:(.text._ZNK6Option10GetMinSizeEv+0x18): undefined reference to `CtrlsImg::Get(int)'
/home/jc/upp/out/CtrlLib/GCC32-Gcc32-Gui-Linux/CtrlLib.a(But ton.o): In function `Option::RefreshPush()':
Button.cpp:(.text._ZN6Option11RefreshPushEv+0x30): undefined reference to `CtrlsImg::Get(int)'
/home/jc/upp/out/CtrlLib/GCC32-Gcc32-Gui-Linux/CtrlLib.a(But ton.o): In function `ch_sync__SpinDownImg()':
Button.cpp:(.text._Z20ch_sync__SpinDownImgv+0x30): undefined reference to `CtrlsImg::Get(int)'
/home/jc/upp/out/CtrlLib/GCC32-Gcc32-Gui-Linux/CtrlLib.a(But ton.o): In function `ch_sync__SpinUpImg()':
Button.cpp:(.text._Z18ch_sync__SpinUpImgv+0x30): undefined reference to `CtrlsImg::Get(int)'
Re: undefined reference to `CtrlsImg::Get(int) [message #4011 is a reply to message #4009] Sat, 15 July 2006 00:03 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
version?

Mirek
Re: undefined reference to `CtrlsImg::Get(int) [message #4012 is a reply to message #4011] Sat, 15 July 2006 08:37 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
607-dev1
Re: undefined reference to `CtrlsImg::Get(int) [message #4022 is a reply to message #4012] Sat, 15 July 2006 14:06 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Problem fixed. Here is my patch to this problem

jc@jc-desktop:~/upp/uppsrc/CtrlLib$ cat Button.cpp.patch
--- Button.cpp~ 2006-07-15 19:25:30.000000000 +0800
+++ Button.cpp 2006-07-15 19:26:43.000000000 +0800
@@ -1,5 +1,8 @@
#include "CtrlLib.h"

+#define IMAGECLASS CtrlsImg
+#define IMAGEFILE <CtrlLib/Ctrls.iml>
+#include <Draw/iml_source.h>

#define LLOG(x) // LOG(x)
Re: undefined reference to `CtrlsImg::Get(int) [message #4025 is a reply to message #4022] Sun, 16 July 2006 22:08 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
3togo wrote on Sat, 15 July 2006 14:06

Problem fixed. Here is my patch to this problem

jc@jc-desktop:~/upp/uppsrc/CtrlLib$ cat Button.cpp.patch
--- Button.cpp~ 2006-07-15 19:25:30.000000000 +0800
+++ Button.cpp 2006-07-15 19:26:43.000000000 +0800
@@ -1,5 +1,8 @@
#include "CtrlLib.h"

+#define IMAGECLASS CtrlsImg
+#define IMAGEFILE <CtrlLib/Ctrls.iml>
+#include <Draw/iml_source.h>

#define LLOG(x) // LOG(x)


(Ubuntu 5.10) I've compiled my package without problem with theide. Then I've compiled it again using the makefile (to link statically libstdc++.so.6) and appeared the error above.
I've used the recipe of 3togo and it works. It seems the recipe it is effective only when one uses the makefile.

Luigi
Re: undefined reference to `CtrlsImg::Get(int) [message #4027 is a reply to message #4025] Sun, 16 July 2006 23:20 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
forlano wrote on Sun, 16 July 2006 22:08

3togo wrote on Sat, 15 July 2006 14:06

Problem fixed. Here is my patch to this problem

jc@jc-desktop:~/upp/uppsrc/CtrlLib$ cat Button.cpp.patch
--- Button.cpp~ 2006-07-15 19:25:30.000000000 +0800
+++ Button.cpp 2006-07-15 19:26:43.000000000 +0800
@@ -1,5 +1,8 @@
#include "CtrlLib.h"

+#define IMAGECLASS CtrlsImg
+#define IMAGEFILE <CtrlLib/Ctrls.iml>
+#include <Draw/iml_source.h>

#define LLOG(x) // LOG(x)


(Ubuntu 5.10) I've compiled my package without problem with theide. Then I've compiled it again using the makefile (to link statically libstdc++.so.6) and appeared the error above.
I've used the recipe of 3togo and it works. It seems the recipe it is effective only when one uses the makefile.

Luigi


Yes, I confirm that the 3togo recipe doensn't work if I compile using theide.
Luigi
Re: undefined reference to `CtrlsImg::Get(int) [message #4031 is a reply to message #4009] Mon, 17 July 2006 02:47 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I could comply successfully both ways: using makefile and using ide. Could u be more specific on your problems encountered.

Also, have u removed all previously complied objects of CtrlLIb & Draw inside the "out" folder before running IDE?

Smile

[Updated on: Mon, 17 July 2006 03:11]

Report message to a moderator

Re: undefined reference to `CtrlsImg::Get(int) [message #4033 is a reply to message #4025] Mon, 17 July 2006 10:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I am afraid that makefiles are not updated for dev releases yet...

Mirek
Re: undefined reference to `CtrlsImg::Get(int) [message #4034 is a reply to message #4031] Mon, 17 July 2006 13:03 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1182
Registered: March 2006
Location: Italy
Senior Contributor
3togo wrote on Mon, 17 July 2006 02:47

I could comply successfully both ways: using makefile and using ide. Could u be more specific on your problems encountered.



I got the error message that title this post when ive used the makefile generated by the ide. But the ide was that of version 605. Maybe this was the problem.

Quote:


Also, have u removed all previously complied objects of CtrlLIb & Draw inside the "out" folder before running IDE?


Yes. When I tried to compile with the ide it complained about the three rows I have added previously and was necessary to remove them and rebuild the whole library.

Luigi
Re: undefined reference to `CtrlsImg::Get(int) [message #4036 is a reply to message #4034] Mon, 17 July 2006 18:09 Go to previous message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I suggest u ask Mirek for advices.

If u don't want to wait, u might add the following few lines to upp/CtrlLib/Buttons.h

#define IMAGECLASS CtrlsImg
#define IMAGEFILE <CtrlLib/Ctrls.iml>
#include <Draw/iml_source.h>

and remove(or comment out) the same few lines from upp/uppsrc/CtrlLib/ChWin32.icpp

Smile


[Updated on: Mon, 17 July 2006 18:14]

Report message to a moderator

Previous Topic: ide is successfully built from 607DEV1 under Ubuntu (Edgy)
Next Topic: Packages needed for compile [SOLVED]
Goto Forum:
  


Current Time: Thu Mar 28 22:27:47 CET 2024

Total time taken to generate the page: 0.00919 seconds