Thread: Including my own header files

  1. #16
    Registered User
    Join Date
    Nov 2009
    Location
    Florida
    Posts
    15
    Quote Originally Posted by tabstop View Post
    Do you normally put files in bizarre places? And for that matter, if you insist on being beholden to the mouse and decide to include it in your project you can put it anywhere you want, since you'll have to go through the file picker to put it in your project so you just have to know where it is. Nobody else cares where it is.
    Yeah dude! I put files to bizarre places. That is my sole purpose for being here.

    8000 posts and the ability to do what?.... nevermind

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,334
    Quote Originally Posted by Huncowboy View Post
    Yeah dude! I put files to bizarre places. That is my sole purpose for being here.

    8000 posts and the ability to do what?.... nevermind
    I had thought "it doesn't make a bit of difference where you put the file" was pretty clear, but you seem to have pretty thoroughly missed the point.

    It doesn't make a bit of difference where you put the file. You keep asking where to put the file, and the answer is "The computer doesn't!@#$%#$%&Y^$@#%Q#@ care where you put the file." When you include the file in your Code::Blocks project, you will get a standard Windows "where is the file" dialog box. Go find the file, wherever you put it, and we're done here.

    If somehow you have forgotten where "Add to project" is, see screenshot.

  3. #18
    Registered User
    Join Date
    Nov 2009
    Location
    Florida
    Posts
    15
    Quote Originally Posted by tabstop View Post
    I had thought "it doesn't make a bit of difference where you put the file" was pretty clear, but you seem to have pretty thoroughly missed the point.

    It doesn't make a bit of difference where you put the file. You keep asking where to put the file, and the answer is "The computer doesn't!@#$%#$%&Y^$@#%Q#@ care where you put the file." When you include the file in your Code::Blocks project, you will get a standard Windows "where is the file" dialog box. Go find the file, wherever you put it, and we're done here.

    If somehow you have forgotten where "Add to project" is, see screenshot.
    Well I had to put the cs50.h file into a specific location. I am reading on the ubuntu forums where someone has a similar problem in linux. For him the cs50.c had to be compiled and the .o file needed to be put into a specific location. I am not using ubuntu, but I was concluding the cs50.c needed to go to a specific folder when using windows also.

    Obviously I am completely new to this, trying to make a 101 tutorial work. I have never used C::B before either so I have no clue how to add a file.

    So following you screenshot first I loaded the file I am trying to compile. Then clicked

    project->add files->

    But it does nothing. Absolutely nothing. I do not get a dialog box. Then I saved the file as a project, opened it again but the same thing.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Header Files
    By devarishi in forum C Programming
    Replies: 8
    Last Post: 12-10-2008, 04:53 PM
  2. Including header files
    By Emeighty in forum C++ Programming
    Replies: 5
    Last Post: 08-09-2008, 03:02 PM
  3. Header files in .h
    By swgh in forum C++ Programming
    Replies: 5
    Last Post: 05-29-2008, 08:58 AM
  4. Class files including other classes
    By combatdave in forum C++ Programming
    Replies: 7
    Last Post: 11-04-2006, 12:37 AM
  5. more header files
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2001, 01:56 PM