Ah..got ya. 
There are two in my toolchain:

I couldn't find AF_CAN or PF_CAN defined in the sys one, but it is in the linux.
I included it, but still getting the error when building that it can't find it.

-----Original Message-----
From: Rolf Eike Beer [mailto:e...@sf-mail.de] 
Sent: Friday, September 16, 2016 4:21 PM
To: cmake@cmake.org
Cc: Gunter, Walter E
Subject: Re: [CMake] using arm toolchain and having issues with linux socket can

Am Freitag, 16. September 2016, 22:13:14 schrieb Gunter, Walter E:
> So, now that I am rocking and rolling using the correct toolchain, I 
> am stuck with a failed compile.
> error: 'PF_CAN' was not declared in this scope
> Does this mean it can’t find the header file?  I am just implementing 
> the CAN interface; nothing complex.

If it would not find linux/can.h it would tell you. It does not find the 
define, which means it actually can include linux/can.h. And this makes sense, 
as PF_CAN is in indirectly in sys/socket.h, so you should (also) include that.


Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 

Follow this link to subscribe/unsubscribe:

Reply via email to