d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Question About C++ With Macs
Prev123Next
Add Reply New Topic New Poll
Member
Posts: 467
Joined: Nov 18 2013
Gold: 0.00
Nov 23 2013 01:39am
Quote (carteblanche @ Nov 23 2013 02:31am)
explain what error you got. odds are you need to add other libraries which you didnt do.


when i compile on terminal it says ***.h file not found.
Member
Posts: 467
Joined: Nov 18 2013
Gold: 0.00
Nov 23 2013 01:42am
***...i don't know why its starred out
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Nov 23 2013 01:42am
Quote (Arstar04 @ Nov 23 2013 02:39am)
when i compile on terminal it says ***.h file not found.


and do you see that file listed? we're not going to hold your hand every step of the way.

any IDE you use will use the same compiler you use on the command line.
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Nov 23 2013 02:00am
Quote (Arstar04 @ 23 Nov 2013 09:03)
makes no sense. vm could stand for anything, therefore me googling that and knowing what to download and how it works on my own is stupid. troll somewhere else




A big fat good luck for you in this industry, you'll need it.

This post was edited by Eagl3s1ght on Nov 23 2013 02:01am
Member
Posts: 467
Joined: Nov 18 2013
Gold: 0.00
Nov 23 2013 01:17pm
can someone just explain how it works, thats all I'm looking for. Do i need that file to make it run or do i need the vm. Or both.
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Nov 23 2013 01:29pm
make sure you have all the required files. if it's a program that only compiles in windows, then make sure you compile it on windows. you should be able to see all the files, so figure it out.
Member
Posts: 5,988
Joined: May 6 2006
Gold: 30.00
Nov 23 2013 03:39pm
In the source code, you'll see it has a section with a few #includes

ex #include <stdio.h>
or #include "filename.h"

In this case, it is including a header file which sets up the prototypes for various functions, variables, and definitions, which will later be called upon in your program. (http://en.wikipedia.org/wiki/Header_file)

If you program calls one of these functions and the header file is not included, then you will get this error because the linker has no header files to get the definitions from



So, in order for your program to run, find the header file, and make sure that it is put in the same folder as your c program (if necessary)

This post was edited by oOn on Nov 23 2013 03:41pm
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Nov 25 2013 08:45am
Quote (Arstar04 @ Nov 23 2013 02:17pm)
can someone just explain how it works, thats all I'm looking for. Do i need that file to make it run or do i need the vm. Or both.


It would help if we actually knew what file that was.
Member
Posts: 467
Joined: Nov 18 2013
Gold: 0.00
Nov 25 2013 09:01am
Quote (rockonkenshin @ Nov 25 2013 09:45am)
It would help if we actually knew what file that was.


it doesn't let me type it. whenever i send it it does ***.h to the file
Member
Posts: 2,217
Joined: Sep 10 2007
Gold: 35.88
Nov 25 2013 09:39am
it also doesn't let you type in *** but if you do something like _E_@!_B_%$_A_#$_Y_ you can still get the message through.
Though, I would be careful about doing this. If I was actually trying to sell you something using the above not mentioned site, then it's likely I would pick up some warn/etc.

Also, I don't recommend scouring the internet for random source code and then trying to compile it.
Not only because it's a security risk, but if you're studying said source code you could be picking up another programmer's bad programming habits.
You'd be much better off writing simple programs on your own. Even if they're only 10-20 lines / 1-2 functions.
You can grow from there.

This post was edited by grievance on Nov 25 2013 09:53am
Go Back To Programming & Development Topic List
Prev123Next
Add Reply New Topic New Poll