formatio.h
formatio.cpp
test_writer.h
test_writer.cpp
STR_LEN=512, format.h constains format of test file.
Code:
kornerr@darkstar:~/cpp/test2$ make
g++ -o obj/formatio.o -c formatio.cpp `wx-config --cxxflags`
g++ -o obj/test_writer.o -c test_writer.cpp `wx-config --cxxflags`
g++ -o test_writer obj/formatio.o obj/test_writer.o `wx-config --cxxflags` `wx-config --libs`
obj/test_writer.o(.text+0xc1f): In function `Panel::OnOpenTxt(wxCommandEvent&)':
: undefined reference to `TestFile::OpenTxt(char*)'
collect2: ld returned 1 exit status
make: *** [test_writer] Error 1
I use wxWidgets lib for creating GUI, and can say for sure it's not because of wxWidgets. I just can't access ANY method of TestFile struct. What's wrong?
Thanks.