Serge Van Criekingen wrote:
> Hello,
>
> I tried to link with FC, but then I got:
> mpif77 globalMain.o functF.o -o go
> globalMain.o: In function `std::__verify_grouping(char const*, unsigned long, std::string const&)':
> globalMain.c:(.text+0x1a): undefined reference to `std::string::size() const'
> globalMain.c:(.text+0x65): undefined reference to `std::string::operator[](unsigned long) const'
> globalMain.c:(.text+0xa4): undefined reference to `std::string::operator[](unsigned long) const'
> globalMain.c:(.text+0xed): undefined reference to `std::string::operator[](unsigned long) const'
> globalMain.o: In function `__static_initialization_and_destruction_0(int, int)':
> globalMain.c:(.text+0x13f): undefined reference to `std::ios_base::Init::Init()'
> globalMain.o: In function `__tcf_0':
> globalMain.c:(.text+0x182): undefined reference to `std::ios_base::Init::~Init()'
> globalMain.o: In function `main':
> globalMain.c:(.text+0x1af): undefined reference to `fortfunc_'
> globalMain.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
> mpif77: No such file or directory
> make: *** [all] Error 1
>
> Any other suggestion then ?
It looks like you didn't follow the advice to append -lstdc++
|