[ros-users] Linking against 32-bit libs on 64-bit system

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: ros-users
Subject: [ros-users] Linking against 32-bit libs on 64-bit system
I need to link against some third-party libraries which I have only in
binary form, and which are 32-bit. If I just try to run make, I get
errors like:

/usr/bin/ld: skipping incompatible
/home/bouffard/ros/pbouffard-ros-pkg/mastjx_ucb_jpl/mastjx_vision/lib/libcmod.a
when searching for -lcmod
/usr/bin/ld: cannot find -lcmod

.. for each of these libs.

I'm hoping it's just a simple flag in CMakeLists.txt. Does anyone know
how to do this?

Thanks,
Pat