CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 102 users online: 6 members, 70 guests and 26 bots.
Members: cvsoft, lafferjm, proegssilb, Tari, tr1p1ea, zeldaking.
Bots: Alexa (1), Spinn3r (2), Magpie Crawler (3), Googlebot (20).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
Author Message
flyingfisch


Super-Expert


Joined: 02 Feb 2012
Posts: 896
Location: Akron, OH

Posted: 18 Apr 2012 04:25:31 pm    Post subject: Using custom *.h files

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.
_________________



Back to top
Ashbad


I am governor Jerry Brown


Joined: 01 Dec 2010
Posts: 2423
Location: There lived a certain man in Russia long ago

Posted: 18 Apr 2012 04:26:30 pm    Post subject:


Code:
#include "data.h"

_________________
-Ashbad
Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 18 Apr 2012 04:26:34 pm    Post subject:

Put it either in include/, or use #include "data.h".
_________________
CALCnet Tournament-38%


deviantArt
Back to top
AHelper


LONG LIVE COMICTECH


Joined: 30 Jan 2011
Posts: 1685
Location: Aufhelperstan, Utopian Republic

Posted: 18 Apr 2012 04:27:29 pm    Post subject: Re: Using custom *.h files

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.
_________________
°ᴥ° Get Lucky

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
Back to top
flyingfisch


Super-Expert


Joined: 02 Feb 2012
Posts: 896
Location: Akron, OH

Posted: 18 Apr 2012 04:31:56 pm    Post subject: Re: Using custom *.h files

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
_________________



Back to top
Display posts from previous:   
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are GMT - 5 Hours

 
Jump to:  
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

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.033523 seconds.