Skip to main content
MikeP
Associate III
June 4, 2019
Question

How to add a library to TrueStudio

  • June 4, 2019
  • 1 reply
  • 1339 views

Hi,

I am tring out RF Communication and im tring to use the Virtual Wire Library,

I Have added the Library to my project file and linked it in the settings (i think)

but when i build i get the follow error

..\Drivers\VirtualWire\VirtualWire.h: file not recognized: File format not recognized

Kind Regards,

Mike

This topic has been closed for replies.

1 reply

Ozone
Principal
June 4, 2019

The selected file is a C language header, and not a library.

I suppose the *.h file declares the interface (the function contained in the library).

Since TrueStudio is basically GCC, look out for the appropriate *.a file, the common extension for gcc link libraries ("archive").