Linking two .cpp and a .h files

后端 未结 8 913
小蘑菇
小蘑菇 2021-02-02 01:00

I\'m doing an exercise (from the third chapter of Thinking in C++) but I have a problem linking two .cpp files.

This is the exercise:

Create a h

8条回答
  •  悲&欢浪女
    2021-02-02 01:44

    I use code::blocks too, and I had the same problem. The default setting in this IDE is that only one file is built. Here's what I did: project -> properties -> build targets -> Select the files related in the bottom right section. Hope this helps!

提交回复
热议问题