hidden symbol is referenced by DSO chromium embeded framewor

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

hidden symbol is referenced by DSO chromium embeded framewor

Postby sabroo74 » Tue Jul 29, 2014 8:36 am

I wrote a libray tha wrap the CEF3 and SFML. I'm on ubuntu 12.04 , g++ 4.8, cmake 3.0.0. I generate a *.so with cmake but when i tried to test my lib with a main.cpp i have an linking error : /usr/bin/ld: bin/testSFW: hidden symbol_ZN17CefProcessMessage6CreateERK13CefStringBaseI20CefStringTraitsUTF16E' in /home/product/workspace/sfwebview/lib/cef3/libcef_dll_wrapper/libcef_dll/ ctocpp/process_message_ctocpp.o is referenced by DSO`

i checked the symbol and i found that he's referenced in both process_message_ctocpp.o and my lib *.so ??

here my cmakelist.txt for the main programm :
Code: Select all
cmake_minimum_required(VERSION 2.6)
INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(gcc GNU)
CMAKE_FORCE_CXX_COMPILER(g++ GNU)

#Configuration du projet

project(TestSFWeb)

set(EXECUTABLE_OUTPUT_PATH bin/)
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -g -march=x86-64 -O0 -funwind-tables -Wsign-compare")


#Inclusion de la bibliothèque Hello

include_directories(../src ../include ../include/cef3)

link_directories("$ENV{HOME}/workspace/sfwebview")
link_directories("$ENV{HOME}/workspace/sfwebview/lib/cef3")
link_directories("$ENV{HOME}/workspace/sfwebview/lib/sfml-linux64")

#Configuration de l'exécutable

file(
        GLOB_RECURSE
        source_files
        *
)

add_executable(
        testSFW
       ${source_files}
)


#Configuration de l'édition de liens
set_target_properties(testSFW PROPERTIES LINK_FLAGS "-Wl,-rpath=$ENV{HOME}/workspace/sfwebview/")
#Configuration de l'édition de liens
target_link_libraries(
        testSFW
        libcef_dll_wrapper.a
        SFWebView
        cef
        sfml-graphics
        sfml-window
        sfml-system
)


any idea ??
sabroo74
Newbie
 
Posts: 3
Joined: Thu Jul 24, 2014 9:26 am

Re: hidden symbol is referenced by DSO chromium embeded fram

Postby magreenblatt » Tue Jul 29, 2014 10:39 am

sabroo74 wrote:process_message_ctocpp.o

This should be part of libcef_dll_wrapper.a. Are you including the file in the build more than once?
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: hidden symbol is referenced by DSO chromium embeded fram

Postby sabroo74 » Tue Jul 29, 2014 3:38 pm

thanks for the reply, yes the file is part of libcef_dll_wrapper.a and no i don't include in other place ?? i just added a libcef_dll_wrapper(contains process_message_ctocpp.o and others) folder in the same folder as libcef_dll_wrapper.a , i did that because i was having error that told me : malformed archive for libcef_dll_wrapper.a ...
sabroo74
Newbie
 
Posts: 3
Joined: Thu Jul 24, 2014 9:26 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 43 guests