[CMake] using arm toolchain and having issues with linux socket can

Rolf Eike Beer eike at sf-mail.de
Fri Sep 16 18:21:21 EDT 2016


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.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160917/ba6aab91/attachment.sig>


More information about the CMake mailing list