C++ program is not building in G++ (Ubuntu)
-
Hi, I have written the code for Elliptic curve cryptography, its working fine in compilers like MS visual C++, Codelite. But its not building and compiling in G++ (Ubuntu 12.04). What might be the problem. If any any one have the C++ code for ECC, please share it to my mail manoj.7390@gmail.com Thanking you...
-
Hi, I have written the code for Elliptic curve cryptography, its working fine in compilers like MS visual C++, Codelite. But its not building and compiling in G++ (Ubuntu 12.04). What might be the problem. If any any one have the C++ code for ECC, please share it to my mail manoj.7390@gmail.com Thanking you...
-
Manoj7390 wrote:
What might be the problem.
It could be anything, but you need to provide some more useful details, such as compiler error messages etc.
Use the best guess
I am getting lots of errors like this..
main.cpp:(.text+0x1a6): undefined reference to `std::cout'
main.cpp:(.text+0x1ab): undefined reference to `std::basic_ostream<char, std::char_traits<char>
& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1ba): undefined reference to `std::cout'
main.cpp:(.text+0x1bf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1e1): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1fe): undefined reference to `std::cout'
main.cpp:(.text+0x203): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x213): undefined reference to `std::cout'
main.cpp:(.text+0x230): undefined reference to `std::cout'
If it is not sufficient, i will send the whole code, i dont know how to attach the file here. Please give me your mail id, i will send you the code.
-
I am getting lots of errors like this..
main.cpp:(.text+0x1a6): undefined reference to `std::cout'
main.cpp:(.text+0x1ab): undefined reference to `std::basic_ostream<char, std::char_traits<char>
& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1ba): undefined reference to `std::cout'
main.cpp:(.text+0x1bf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1e1): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1fe): undefined reference to `std::cout'
main.cpp:(.text+0x203): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x213): undefined reference to `std::cout'
main.cpp:(.text+0x230): undefined reference to `std::cout'
If it is not sufficient, i will send the whole code, i dont know how to attach the file here. Please give me your mail id, i will send you the code.
-
I am getting lots of errors like this..
main.cpp:(.text+0x1a6): undefined reference to `std::cout'
main.cpp:(.text+0x1ab): undefined reference to `std::basic_ostream<char, std::char_traits<char>
& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1ba): undefined reference to `std::cout'
main.cpp:(.text+0x1bf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1e1): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x1fe): undefined reference to `std::cout'
main.cpp:(.text+0x203): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
main.cpp:(.text+0x213): undefined reference to `std::cout'
main.cpp:(.text+0x230): undefined reference to `std::cout'
If it is not sufficient, i will send the whole code, i dont know how to attach the file here. Please give me your mail id, i will send you the code.
-
-
Manoj7390 wrote:
i will send you the code.
No you won't. Just show us the first few lines of your source (where your
#include
statements are), and the lines that are producing the errors.Use the best guess
#include <cstdlib>
#include <iostream>
#include <vector>
using namespace std;#include <math.h>
Plenty of errors are coming, i couldn't figure it out. But my question is same program is running in other compilers but why it is not running in g++. Might be there is a small bug.
-
#include <cstdlib>
#include <iostream>
#include <vector>
using namespace std;#include <math.h>
Plenty of errors are coming, i couldn't figure it out. But my question is same program is running in other compilers but why it is not running in g++. Might be there is a small bug.
Manoj7390 wrote:
Plenty of errors are coming, i couldn't figure it out.
Like I said, show us the line of code and the error message; the first two or three should be enough.
Manoj7390 wrote:
Might be there is a small bug.
Most unlikely, it is much more likely that the compiler cannot find one of the include files, or there is some other setting specific to g++ that you need to add. I do not have a Linux system so cannot test this.
Use the best guess
-
Manoj7390 wrote:
Plenty of errors are coming, i couldn't figure it out.
Like I said, show us the line of code and the error message; the first two or three should be enough.
Manoj7390 wrote:
Might be there is a small bug.
Most unlikely, it is much more likely that the compiler cannot find one of the include files, or there is some other setting specific to g++ that you need to add. I do not have a Linux system so cannot test this.
Use the best guess