pbm compilation was to link class.cpp

This commit is contained in:
hugogogo
2022-02-02 18:42:56 +01:00
parent fd2dd5fa20
commit cdd562216a
6 changed files with 7 additions and 19 deletions

View File

@@ -16,11 +16,11 @@ LIBS =
INCLUDES = -I$(D_HEADERS) INCLUDES = -I$(D_HEADERS)
D_HEADERS = . D_HEADERS = .
HEADERS = Phonebook.class.hpp HEADERS = Phonebook.class.hpp \
Phonebook.class.cpp
D_SRCS = . D_SRCS = .
SRCS = Phonebook.cpp \ SRCS = Phonebook.cpp \
Phonebook.class.cpp
D_OBJS = builds D_OBJS = builds
OBJS = $(SRCS:%.cpp=$(D_OBJS)/%.o) OBJS = $(SRCS:%.cpp=$(D_OBJS)/%.o)

View File

@@ -1,13 +1,10 @@
#ifndef PHONEBOOK_CLASS_HPP #ifndef PHONEBOOK_CLASS_HPP
# define PHONEBOOK_CLASS_HPP # define PHONEBOOK_CLASS_HPP
class Phonebookk { class Phonebook {
public:
public: Phonebook();
~Phonebook();
~Phonebookk( void );
Phonebookk( void );
}; };
#endif #endif

View File

@@ -2,7 +2,7 @@
int main() { int main() {
Phonebookk yellow; Phonebook yellow;
return 0; return 0;
} }

Binary file not shown.

Binary file not shown.

View File

@@ -1,9 +0,0 @@
#include "Sample.class.cpp"
int main() {
Sample instance;
return 0;
}