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

Re: Gmsh package broken ?



> is that change related to
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=664948

Yes, exactly, I was trying to fix that bug...
As I understand the following lines are responsible for creating
shared libraries:

add_library(shared SHARED EXCLUDE_FROM_ALL ${GMSH_SRC})
set_target_properties(shared PROPERTIES OUTPUT_NAME gmsh-2.5.1)
target_link_libraries(shared ${LINK_LIBRARIES})
add_executable(gmsh_dynamic EXCLUDE_FROM_ALL Fltk/Main.cpp)
target_link_libraries(gmsh_dynamic shared)
target_link_libraries(gmsh ${LINK_LIBRARIES})

The third line makes a problem:

"Linking CXX shared library libgmsh-2.5.1.so
.....
.....
/usr/lib/gcc/i486-linux-gnu/4.6/../../../i386-linux-gnu/Scrt1.o: In
function `_start':
(.text+0x28): undefined reference to `main'
collect2: ld returned 1 exit status
"

I am not an expert in shared libraries and appreciate a help.

Thanks.

Anton


Reply to: