Game Development Community

Problem with compiling *.h files...

by Max Thomas · in Torque Game Engine · 11/27/2004 (6:55 pm) · 10 replies

Hello all,

As you prolly allready know I've been around here for a fair amount of time. But, I have a problem. When I go to compile my *.h files now C++ says "cannot compile the file 'blah blah blah'; no compile tool is associated with the file extension' I had this working with my old computer... But now I get this. I don't know whats wrong. Help would be greatly appreciated. As you all know torque is no fun without beein able to compile corectly.

Thanks, Max

#1
11/27/2004 (7:05 pm)
If you try to compile a single *.h file then i can tell you its not working.
Try the *.cc file instead.
#2
11/27/2004 (8:39 pm)
The *.cc file compiles just fine. It's just the *.h files that are been tempremental. I allready have the torque SDK project workspace opened and the *.h file is opened within that. But then when I try and compile is says that.
#3
11/27/2004 (9:09 pm)
You dont compile .h files... Thats the problem. They are included into the .cc files which are then compiled. .h files are just blueprints for the classes basically. They dont have any actual content (usually), so there isnt really anything to compile.
#4
11/27/2004 (9:17 pm)
Hmm... But then shouldn't it make the changes in the example folder?
#5
11/28/2004 (2:02 am)
If you made some changes in a header file (.h) then some compilers won't recognize the change.
The easiest way to compile it, is to recompile everything.
#6
11/28/2004 (3:14 am)
Max Thomas,

You need to run the registery files (at least for Windows) to make the registery update itself. This way VC++ Studio will learn about the two formats.

Did you recently do an O/S reinstall, or maybe you're running a VC that has not been installed and just copied? That could be the case.

Edit: For example assuming you're installing into C:\Torque.

C:\Torque\VC6\VC6 .cc compiling.reg
#7
11/28/2004 (8:08 am)
Yup, that what I did but it's not a copied version. I'm not runing OS etheir the standard Windows for me. I've used the VC6 .cc compiling.reg with it saying that it was sucessfuly added to the rigistry and I have torque installed to C drive like it should be. But still no luck.
#8
11/28/2004 (8:19 am)
Reinstall VC.
#9
11/28/2004 (9:04 am)
Really think so? I guss I'll try it in the next few days if I ever get a brake from farm work :p

Thanks, Max
#10
11/28/2004 (10:06 am)
That's what I did when I lost compiling abilities on *.h files, and syntax highlighting too. Fixed it that way, I think.