Author Topic: Linking problems  (Read 2233 times)

Offline teales

  • Multiple posting newcomer
  • *
  • Posts: 13
Linking problems
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Linking problems
« Reply #1 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]