Author Topic: Adding new #include files  (Read 7416 times)

Offline NewWorldCPPCoder

  • Single posting newcomer
  • *
  • Posts: 2
Adding new #include files
« on: March 31, 2016, 09:56:10 pm »
Hi y'all, So my friend recommended this IDE to me, and man is it worth it. (You have no idea how long i've been looking for an alternate, free version of Microsoft's VS...) Thank you developers!

This is not what I am here to talk about though.

Shortly into coding, I wrote a program needing the "apvector.h" file, which, to my surprise, Was not there! So, I went to the internet and copied the code and added it into the include files along with the .cpp version.

The issue:

apvector.h took fine. It's now part of it.

the apvector.cpp did not. (I have no idea where to put this .cpp file...)

I only need to know where it should be put. Thanks!

I'm sure this has been answered many, many times, But I don't have the time to go digging through the forums to find it.

Regaurds,

NewWorld

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7576
    • My Best Post
Re: Adding new #include files
« Reply #1 on: April 01, 2016, 02:00:21 am »
Please try to post your questions in the correct forum in the future.
Stay in this thread for this question.
After reading the CB General FAQs http://wiki.codeblocks.org/index.php/FAQ-General
Please post the needed info http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Compiler and Operating system information are the obvious info needed for your question.

NOTE: Finding a random header from the internet and adding it to a Compiler installation tends to break the Compiler Installation!

Quote
I'm sure this has been answered many, many times, But I don't have the time to go digging through the forums to find it.

Edit: The people on this site do NOT have the time to help lazy posters!

Edit2: I suggest reading the rules before you get banned!  http://forums.codeblocks.org/index.php/topic,9996.0.html

Tim S.
« Last Edit: April 01, 2016, 02:33:38 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Adding new #include files
« Reply #2 on: April 02, 2016, 02:50:40 pm »
"apvector.h" is not part of the standard, so not all compilers will ship wit it (i honestly doubt that VS will ships with it...) So this is probably a 3th party library, and i have not found a source for the lib with 3sek googeling so i have not the patience to search it. For quick help you can look at  the links stahta01 gave you. I will add this:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(general)#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F

!!!
NOTE: Finding a random header from the internet and adding it to a Compiler installation tends to break the Compiler Installation!
!!!

the apvector.cpp did not. (I have no idea where to put this .cpp file...)
Note: i have no idea how to install this library properly, because i don't know the source of the library, but cpp files are normally added to the project ;)

if you want more help, read the faqs and add the information where to find this 3th party library

greetings