Re: Trying to build simple application on Windows



Many thanks! That was indeed the dumb mistake I was making in trying to build the helloworld example from "Programming with gtkmm".

Bruce Sherwood

Pascal Grodowski wrote:
helloworld: main.o helloworld.o
    g++ -o helloworld main.o helloworld.o

You must provide the libs if you create the executable from object files.

Try:
helloworld: main.o helloworld.o
g++ -o helloworld main.o helloworld.o `pkg-config gtkmm-2.4 --cflags --libs`

instead of:
helloworld: main.o helloworld.o
    g++ -o helloworld main.o helloworld.o


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]