pbm compilation was to link class.cpp
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
Phonebookk yellow;
|
Phonebook yellow;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,9 +0,0 @@
|
|||||||
#include "Sample.class.cpp"
|
|
||||||
|
|
||||||
int main() {
|
|
||||||
|
|
||||||
Sample instance;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user