BFD 2.15.91 20040904 internal error, aborting at ../../src/bfd/cache.c line
495 in bfd_cache_lookup_worker
anyone got an idea what it is. I'm sure it is a bug. Tha compiler says "Please
report this bug".
My sourse
include <iostream>
include <math.h>
using namespace std;
int main ()
{
int N, h;
cin>>N;
h=sqrt(N);
while ((N%h)!=0)
{h--;}
cout<<2*(h+(N/h))<<endl;
system ("pause");
return 0;
}
just doing a daily problem
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
system("PAUSE");
return EXIT_SUCCESS;
}
The error occurs when I add the lib "libws2_32.a" to the linker. I don't
understand why...
Could you please help me ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Executing g++.exe...
g++.exe "C:\Users\iel\Documents\trabajo\repaso\Informática\prac12.cpp" -o "C:\Users\iel\Documents\trabajo\repaso\Informática\prac12.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/fstream.h:31,
from C:\Users\iel\Documents\trabajo\repaso\Informática\prac12.cpp:11:
C:/Dev-Cpp/include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
C:\Dev-Cpp\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: BFD 2.15.91 20040904 internal error, aborting at ../../src/bfd/cache.c line 495 in bfd_cache_lookup_worker
C:\Dev-Cpp\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: Please report this bug.
collect2: ld returned 1 exit status
Execution terminated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
BFD 2.15.91 20040904 internal error, aborting at ../../src/bfd/cache.c line
495 in bfd_cache_lookup_worker
anyone got an idea what it is. I'm sure it is a bug. Tha compiler says "Please
report this bug".
My sourse
include <iostream>
include <math.h>
using namespace std;
int main ()
{
int N, h;
cin>>N;
h=sqrt(N);
while ((N%h)!=0)
{h--;}
cout<<2*(h+(N/h))<<endl;
system ("pause");
return 0;
}
just doing a daily problem
Hello!
I have the same error: " BFD 2.15.91 20040904 internal error, aborting at
../../src/bfd/cache.c line 495 in bfd_cache_lookup_worker "
include <cstdlib>
include <iostream>
include <winsock.h>
using namespace std;
int main(int argc, char *argv)
{
cout << "Start..." << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
The error occurs when I add the lib "libws2_32.a" to the linker. I don't
understand why...
Could you please help me ?
Post the compile log.
Compiler: Default compiler