I am writing a program in C that will not be on Arduino and is not written using the Arduino IDE; however, there is a library for Arduino that I would like to incorporate (WiFi). Is there a way I can include this in my C program as a header file? Can I manually copy and paste the library into my project directory?
Odd question but what stops You from trying Your copying? Getting the .h file and the .cpp file maybe satisfies Your compiler.
Railroader: Odd question but what stops You from trying Your copying? Getting the .h file and the .cpp file maybe satisfies Your compiler.
I tried that! There are a number of dependencies listed for each dependency. I would essentially have to install the Arduino IDE into my project folder. This would be a bit silly.
What CPU are You using? If it is not an Arduino microcontroller it will hardly work as faar as I can see.
When I compile a C program using GCC on a Raspberry Pi, I can #include <sys/socket.h>. When I try to compile using avr-gcc to upload to Arduino, however, it says that there is no such file sys/socket.h. Can socket be used with avr-gcc? Is there a way I can install it?
I've merged your cross-posts @eric-meehan.
Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting will result in a suspension from the forum.
In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.