Problem with file recognition. h

Asked

Viewed 90 times

0

Well I created a arquivo.h and a arquivo.cpp, of arquivo.cpp by including the #include "arquivo.h" automatically recognizes, already in my main.cpp does not recognize there I cannot use the data of that file.

  • I do not understand what you, it is better to post the codes or explain the problem better. What it means "does not recognize"?

  • because of this mistake here undefined reference o 'inicializa()'., remember that the files are in the same folder, it was to work.

  • You look like trouble when it comes to link, the error must be on the command line. It’s just a kick due to lack of information.

  • You included the. h file in the main.cpp?

  • yes, because when I say that you don’t recognize it is the fact that you press Ctrl + espaço .

  • You have already tried to click on Rescan Solution in the Project menu?

  • Where is this option I am using code Blocks

  • @Rodolfo ah, this option is in the visual studio

  • Thanks guys I found my mistake.

Show 4 more comments

1 answer

-1

Well I found my mistake

debug and release options were unchecked.

To check just go in the file tab you created right click and select the boxes

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.