# Rclcpp.lib for win32 visual studio project

**URL:** <https://discourse.openrobotics.org/t/rclcpp-lib-for-win32-visual-studio-project/4759>\
**Category:** ROS General\
**Created:** [May 13, 2018, 12:47pm UTC](https://discourse.openrobotics.org/t/rclcpp-lib-for-win32-visual-studio-project/4759 "2018-05-13T12:47:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkhatib89](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@mkhatib89](https://discourse.openrobotics.org/u/mkhatib89)\
**Post date:** [May 13, 2018, 12:47pm UTC](https://discourse.openrobotics.org/t/rclcpp-lib-for-win32-visual-studio-project/4759/1 "2018-05-13T12:47:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![marguedas](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/marguedas/32/1633_2.png) [@marguedas](https://discourse.openrobotics.org/u/marguedas)\
**Post date:** [May 13, 2018, 5:32pm UTC](https://discourse.openrobotics.org/t/rclcpp-lib-for-win32-visual-studio-project/4759/2 "2018-05-13T17:32:04Z")

</div>

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](https://github.com/ros2/ros2/wiki/Windows-Development-Setup) 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](http://wiki.ros.org/Support) and tag your question with the `ros2` tag.

Update: Answered in the [duplicate question](https://answers.ros.org/question/291005/is-there-a-rclcpplib-for-win32-projects/?answer=291012#post-id-291012) on [answers.ros.org](http://answers.ros.org).

---

<div class="post-metadata">

**Author:** ![tfoote](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/tfoote/32/3813_2.png) [@tfoote](https://discourse.openrobotics.org/u/tfoote)\
**Post date:** [May 13, 2018, 5:41pm UTC](https://discourse.openrobotics.org/t/rclcpp-lib-for-win32-visual-studio-project/4759/3 "2018-05-13T17:41:43Z")

</div>


