clang 3.7 link failure

Hi

After downloading cygwin, clang and make, I am testing if the configuration works. I have written a "Hello world" C++ program and a make file to test this.

Compilation with clang 3.7 succeeds.

Linking fails with error:


hello.o: undefined reference to ios_base::Init::Init()


What could be the problem? How can I diagnose it?

Thanks.
my first guess would be some missing libraries...

anyways a quick google search got me this

http://stackoverflow.com/questions/10906275/undefined-reference-to-stdios-baseinitinit

http://www.cplusplus.com/forum/beginner/13822/
Last edited on
Use clang++
Actually, I think there are some missing libraries too.

How can I re-download the cygwin configuration onto my PC? If I try to re-download it now using cygwin's setup, it just tells me everything's already been done. I'd like to _force_ a re-download.

Also, how can I check / verify the current configuration?

Thanks
Last edited on
Try uninstalling clang++ and dependencies and then reinstalling clang++.
https://www.cygwin.com/faq/faq.html#faq.setup.uninstall-packages
Topic archived. No new replies allowed.