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 :playball: :playball:

ill post it in case someone needs this urgent.

includes on compiler “OTHER” options















































-lXi -lXrandr












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.