tags 565088 patch
user ubuntu-de...@lists.ubuntu.com
usertags 565088 ubuntu-patch oneiric
thanks

On Wed, Jan 13, 2010 at 01:05:21AM +0000, Matthias Klose wrote:
> c++ -o nitpic -g -O2 -fno-strict-aliasing      main.o ic.o info.o instr.o 
> pu_lib.o reg.o sim.o util.o 16c84.o -lXaw  -lXmu -lXt -lSM -lICE -lXext -lX11 
> -lXt -lSM -lICE -lXext -lX11   -lbfd -lopcodes -liberty -lm -lc   
> ic.o: In function `ic_update()':
> /build/user-nitpic_0.1-11.2-amd64-hZMDZB/nitpic-0.1/ic.cc:109: undefined 
> reference to `W'
> /build/user-nitpic_0.1-11.2-amd64-hZMDZB/nitpic-0.1/ic.cc:133: undefined 
> reference to `W'
> /build/user-nitpic_0.1-11.2-amd64-hZMDZB/nitpic-0.1/ic.cc:137: undefined 
> reference to `W'
> /build/user-nitpic_0.1-11.2-amd64-hZMDZB/nitpic-0.1/ic.cc:137: undefined 
> reference to `W'
> /build/user-nitpic_0.1-11.2-amd64-hZMDZB/nitpic-0.1/ic.cc:151: undefined 
> reference to `W'
> ic.o:/build/user-nitpic_0.1-11.2-amd64-hZMDZB/nitpic-0.1/ic.cc:155: more 
> undefined references to `W' follow
> collect2: ld returned 1 exit status
> make[1]: *** [nitpic] Error 1

Patch follows:

  * Anonymous structs are not conformant C++.  Give W a struct name so that
    its linkage works (LP: #756188).

diff -u nitpic-0.1/picsim.hh nitpic-0.1/picsim.hh
--- nitpic-0.1/picsim.hh
+++ nitpic-0.1/picsim.hh
@@ -167,7 +167,7 @@
 #      define  GLOBAL  extern
 #endif
 
-GLOBAL struct {
+GLOBAL struct Widgets {
        Widget   toplevel;
        Widget   main;
        Widget           title;

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to