Rclcpp.lib for win32 visual studio project

I am trying to create a ros node to subscribe to a topic in a visiual studio project which is (Release and Win32)
but I got this error

Severity Code Description Project File Line Suppression State
Error LNK1112 module machine type ‘x64’ conflicts with target machine type ‘X86’ Cooperation C:\Maram\ros2\build\approach\rclcpp.lib(rclcpp.dll) 1

do you have any idea how I can solve this problem ??

P.S I can’t change visual studio project to x64, it has alot of other external libraries which is 32

ROS2 targets only 64 bits systems at the moment so there is no libraries built for 32 bits system.
You could try to build the ROS 2 stack from source in 32bits, but as we never tried it you may face several challenges along the way.

In the future please ask your questions on ROS Answers following our support policy and tag your question with the ros2 tag.

Update: Answered in the duplicate question on answers.ros.org.