Hi, all –
After a departure from software development of almost 20 years, I'm wading back in. (I'm going to be writing simulators and UIs for dedicated processors.) In addition to needing to learn C++, I need to refresh my skills with the development tools.
I have a few questions which I'm sure are going to seem incredibly lame:
1. I found a C++ version of hello world. When I try to compile it, I get a bunch of error messages:
The same command works fine on a C file, so I assume I'm misusing the command. Can someone help?
2. How does one link? I simply don't remember.
3. I'm trying to decide on a development environment. Does anyone have an opinion on Eclipse? I downloaded it and started playing with it, but at first glance, it looks like more than I need for a single-person project with what I expect to be relatively modest development requirements. I'm going to look at XCode, too, but I'm considering just working within the terminal window.
Thanks for helping me scrape some of the rust off.
After a departure from software development of almost 20 years, I'm wading back in. (I'm going to be writing simulators and UIs for dedicated processors.) In addition to needing to learn C++, I need to refresh my skills with the development tools.
I have a few questions which I'm sure are going to seem incredibly lame:
1. I found a C++ version of hello world. When I try to compile it, I get a bunch of error messages:
Code:
Undefined symbols:
"std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)", referenced from:
_main in ccFTxGWv.o
"std::ios_base::Init::Init()", referenced from:
__static_initialization_and_destruction_0(int, int)in ccFTxGWv.o
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const", referenced from:
std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in ccFTxGWv.o
"std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long) const", referenced from:
std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in ccFTxGWv.o
std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in ccFTxGWv.o
std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in ccFTxGWv.o
"___gxx_personality_v0", referenced from:
std::__verify_grouping(char const*, unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)in ccFTxGWv.o
_main in ccFTxGWv.o
___tcf_0 in ccFTxGWv.o
unsigned long const& std::min<unsigned long>(unsigned long const&, unsigned long const&)in ccFTxGWv.o
__static_initialization_and_destruction_0(int, int)in ccFTxGWv.o
global constructors keyed to mainin ccFTxGWv.o
CIE in ccFTxGWv.o
"std::ios_base::Init::~Init()", referenced from:
___tcf_0 in ccFTxGWv.o
"std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)", referenced from:
_main in ccFTxGWv.o
"std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))", referenced from:
_main in ccFTxGWv.o
"std::cout", referenced from:
_main in ccFTxGWv.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
The same command works fine on a C file, so I assume I'm misusing the command. Can someone help?
2. How does one link? I simply don't remember.
3. I'm trying to decide on a development environment. Does anyone have an opinion on Eclipse? I downloaded it and started playing with it, but at first glance, it looks like more than I need for a single-person project with what I expect to be relatively modest development requirements. I'm going to look at XCode, too, but I'm considering just working within the terminal window.
Thanks for helping me scrape some of the rust off.