I am using PrizmSDK 0.3.

My file setup for my project is:



Code:

- PrizmSDK/projects
   - ./Project
      - ./src
         ./example.C
         ./data.h


I hope you can understand that :/

Anyway, when I do:


Code:

include <data.h>


It does not recognize my *.h file.

Should I put it somewhere else? Or should I edit the Makefile?

I am using linux.

Code:
#include "data.h"
Put it either in include/, or use #include "data.h".
flyingfisch wrote:


Code:

include <data.h>


It does not recognize my *.h file.

firstly, that should be #include, and not include. Secondly, where is the .h file?

Typically, <...> is for global includes and "..." is for local includes. (Don't stab me for terminology). Use #include "data.h" if data.h is included relative to the source file.
AHelper wrote:
flyingfisch wrote:


Code:

include <data.h>


It does not recognize my *.h file.

firstly, that should be #include, and not include. Secondly, where is the .h file?

Typically, <...> is for global includes and "..." is for local includes. (Don't stab me for terminology). Use #include "data.h" if data.h is included relative to the source file.


Oh, thanks! I must have missed that in the C tutorial. Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement