| | |
Compiling a Class in several parts?!?
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
In the top picture it looks like compile progress is in your vkv.h file. Your class declaration is in LATestVoorBeeldenBoek.cpp -- it should be in you vkv.h.
The popup seems to indicate that you were attempting to compile a header. You don't click on 'compile' for a header.
The popup seems to indicate that you were attempting to compile a header. You don't click on 'compile' for a header.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
>> The popup seems to indicate that you were attempting to compile a header. You don't click on 'compile' for a header.
Then when I create that Header file vkv.h, I just write the code and save it as a Header File?
Also, you have a map called 'External Dependencies', instead of putting the Header file in there, can I just put it in the map 'Header files'?
I notice that in your Source Files for Sample PP, there are two .cpp files, main.cpp and vkv.cpp, did you add these to the vkv.h header file?
Did you add any files towards the main.cpp or/and vkv.cpp?
I have deleted the different programs and will make a new attempt tommorow, I printed you're example so I have an idea what it should look like
Thanks for your patience Dave, very much appreciated :!:
Then when I create that Header file vkv.h, I just write the code and save it as a Header File?
Also, you have a map called 'External Dependencies', instead of putting the Header file in there, can I just put it in the map 'Header files'?
I notice that in your Source Files for Sample PP, there are two .cpp files, main.cpp and vkv.cpp, did you add these to the vkv.h header file?
Did you add any files towards the main.cpp or/and vkv.cpp?
I have deleted the different programs and will make a new attempt tommorow, I printed you're example so I have an idea what it should look like
Thanks for your patience Dave, very much appreciated :!:
>Then when I create that Header file vkv.h, I just write the code and save it as a Header File?
I think so -- I'm not familiar with that editor. I usually just save a file as whatever.h.
>Also, you have a map called 'External Dependencies', instead of putting the Header file in there, can I just put it in the map 'Header files'?
I didn't put anything anywhere. When the compiler found files that were #included, it listed them there.
>I notice that in your Source Files for Sample PP, there are two .cpp files, main.cpp and vkv.cpp, did you add these to the vkv.h header file?
I added the source files to the project.
>Did you add any files towards the main.cpp or/and vkv.cpp?
No.
I think so -- I'm not familiar with that editor. I usually just save a file as whatever.h.
>Also, you have a map called 'External Dependencies', instead of putting the Header file in there, can I just put it in the map 'Header files'?
I didn't put anything anywhere. When the compiler found files that were #included, it listed them there.
>I notice that in your Source Files for Sample PP, there are two .cpp files, main.cpp and vkv.cpp, did you add these to the vkv.h header file?
I added the source files to the project.
>Did you add any files towards the main.cpp or/and vkv.cpp?
No.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Yep, got it Dave:
http://img252.imageshack.us/img252/9...gtwo5da.th.jpg
With your explanation and example I managed to do it
Thanks very much for the help, really appreciated it :!:
Thanks to ImageShack for Free Image Hosting
http://img252.imageshack.us/img252/9...gtwo5da.th.jpg
With your explanation and example I managed to do it
Thanks very much for the help, really appreciated it :!:
Thanks to ImageShack for Free Image Hosting
Good to hear.
Describing the process of creating project using multiple source files is not the easiest thing to do!
Describing the process of creating project using multiple source files is not the easiest thing to do!
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
I understand, neither is trying to explain something what's wrong without being able to show it.
But like I said, with what you told me then showing me how you did it with the picture, I just deleted the previous one and started again.
I didn't compile the headerfile vkv.h and after creating the other source files and compiling them, the headerfile automatically was added towards the program
Thing with these items is, that once you have seen how it is supposed to be done, it isn't difficult at all, but, problem is, you have to be able to let it succeed ONE TIME :lol:
But like I said, with what you told me then showing me how you did it with the picture, I just deleted the previous one and started again.
I didn't compile the headerfile vkv.h and after creating the other source files and compiling them, the headerfile automatically was added towards the program
Thing with these items is, that once you have seen how it is supposed to be done, it isn't difficult at all, but, problem is, you have to be able to let it succeed ONE TIME :lol:
![]() |
Similar Threads
Other Threads in the C++ Forum
- Previous Thread: Unable to use system commands for turbo c++ 3.0 on win-XP
- Next Thread: Help figuring Obj. Oriented programing
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy directshow dll download dynamic dynamiccharacterarray email encryption error file format forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings studio temperature template test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






