
please wait
Linker error undefined reference to 'spec::spec()' Linker error undefined reference to 'spec::getName()' Linker error undefined reference to 'spec::printName()' |
|
|
|
|
|
|
|
|
Hrm...try using #ifndef headers around your header file. |
Step 2: Create a new project. A "project" can be considered as a container that is used to store all the elements that are required to compile a program. Go to the "File" menu and select "New", "Project...". Choose "Empty Project" and make sure "C++ project" is selected. Here you will also give your project a name. You can give your project any valid filename, but keep in mind that the name of your project will also be the name of your final executable. Once you have entered a name for your project, click "OK". Dev-C++ will now ask you where to save your project. Step 3: Create/add source file(s). You can add empty source files one of two ways: Go to the "File" menu and select "New Source File" (or just press CTRL+N) OR Go to the "Project" menu and select "New File". Note that Dev-C++ will not ask for a filename for any new source file until you attempt to: Compile Save the project Save the source file Exit Dev-C++ You can add pre-existing source files one of two ways: Go to the "Project" menu and select "Add to Project" OR Right-click on the project name in the left-hand panel and select "Add to Project". |
|
|
|
|
|
|