Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: teales on December 26, 2011, 07:29:11 pm

Title: Linking problems
Post by: teales on December 26, 2011, 07:29:11 pm
I'm using 10.05 on Ubuntu.

I can build my app in CB with a simple Makefile:

DC = dmd
DFLAGS = -gc -d -I/usr/include/d/gtkd
LFLAGS = -L-L/usr/lib/gtkd/32 -L-L/usr/lib32 -L-lgtkd -L-ldl -L-lrt -L-lphobos2 -L-lusps4cb

COMPILE = $(DC) -c $(DFLAGS)

OBJFILES := $(patsubst %.d,%.o,$(wildcard *.d))

all: compo

Debug: $(OBJFILES)
   $(DC) -ofcompo $(OBJFILES) $(LFLAGS)

%.o: %.d
   $(COMPILE) $<

clean:
   rm *.o
   rm compo

However, I can not find any combination of Project Build Settings that does not complain about unsatisfied externals. Compilation is OK.

Can anyone suggest a set of build options that would be equivalent to the Makefile.

Steve
Title: Re: Linking problems
Post by: oBFusCATed on December 29, 2011, 01:36:53 pm
Here is some info, which could help you to find what is wrong:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29