Problems compiling existing project with NVCC Code::Blocks

i’ve searched over and hour on google hoping to find some similar cases, but had no luck.

im having this problem when building my existing project with NVCC compiler, all im doing is just chaging the compiler and rebuilding as a start point. and i get these results depending on how i add the compile options for the gtkglextmm library

using compile options: pkg-config --cflags gtkglextmm-1.2

and linker options: pkg-config --libs gtkglextmm-1.2

Linking console executable: bin/Release/treegrowthsimulator

nvcc fatal   : Unknown option 'Wl,--export-dynamic'

Process terminated with status 255 (0 minutes, 51 seconds)

0 errors, 0 warnings

icompiles ok, but has trouble generating my executable…it fails.

im not sure what is it. im using Code::Blocks and so far iwas able to create projects from scratch even with glut openGL interoperability. but this time i think the library is responsable for generating that error.

we all know that gtkglextmm is hard to link correctly on IDEs,

so i was forced to add those compile options pkg-config --cflags gtkglextmm-1.2 and pkg-config --libs gtkglextmm-1.2 since i couldnt made it to link correctly with the “IDE way”.

note: it compiles correctly if i choose GNU GCC Compiler

any help is appreciated

now doing the opposite, i recompiled an example from the sdk and adding this include line

#include <gtkmm.h>

using compile options: pkg-config --cflags gtkglextmm-1.2
and linker options: pkg-config --libs gtkglextmm-1.2

and it generates the same error,

so in other words, my problem consists of finding a way to build any of the sdk projects with the line “#include <gtkmm.h>” line in it.
would be useful to know you results to compare.

i found a brute force solution

i just Added everything in the form of -I[INCLUDES] and -L[LIBDIR] -l[LIB] on codeblocks project build options. forget about pkg-config --cflags gtkglextmm-1.2 it just kills nvcc

now at least it works External Image External Image

ill post it in case someone needs this urgent.

includes on compiler “OTHER” options

-I/usr/include/gtkmm-2.4

-I/usr/include/gtkglextmm-1.2

-I/usr/include/gtkglext-1.0

-I/usr/include/gdkmm-2.4

-I/usr/lib64/gdkmm-2.4/include

-I/usr/include/glibmm-2.4

-I/usr/include/giomm-2.4

-I/usr/lib64/gtkglext-1.0/include

-I/usr/lib64/gtkglextmm-1.2/include

-I/usr/lib64/gtkmm-2.4/include

-I/usr/lib64/gtkmm-2.4/include

-I/usr/lib64/gtkmm-2.4/include

-I/usr/lib64/glibmm-2.4/include

-I/usr/lib64/giomm-2.4/include

-I/usr/lib64/gdkmm-2.4/include

-I/usr/lib64/sigc++-2.0/include

-I/usr/lib64/glib-2.0/include

-I/usr/lib64/gtk-2.0/include

-I/usr/include/pangomm-1.4

-I/usr/include/atkmm-1.6

-I/usr/include/gtk-2.0

-I/usr/include/sigc++-2.0

-I/usr/include/glib-2.0

-I/usr/include/cairomm-1.0

-I/usr/include/pango-1.0

-I/usr/include/cairo

-I/usr/include/freetype2

-I/usr/include/libpng12

-I/usr/include/atk-1.0

-lgtkmm-2.4

-lgdkmm-2.4

-latkmm-1.6

-lgtk-x11-2.0

-lpangomm-1.4

-lcairomm-1.0

-lglibmm-2.4

-lsigc-2.0

-lgdk-x11-2.0

-latk-1.0

-lgdk_pixbuf-2.0

-lm

-lpangocairo-1.0

-lfontconfig

-lXext

-lXrender

-lXinerama

-lXi -lXrandr

-lXcursor

-lXcomposite

-lXdamage

-lpango-1.0

-lcairo

-lX11

-lXfixes

-lgobject-2.0

-lgmodule-2.0

-ldl

-lglib-2.0

Libraries on Linker “Other” Options

-L/usr/lib64/ -lgtkmm-2.4

-L/usr/lib64/ -lgtkglextmm-x11-1.2

you might need to change lib64 for lib if you are in 32 bit.

and of course you will need to add the cuda libs and includes.

bye