Is this a bug?

Ankur Sinha sanjay.ankur at gmail.com
Sun Jan 18 18:04:19 UTC 2015


On Fri, 2015-01-16 at 20:12 -0700, Ashoordin wrote:
> Hello friends,
> 
> I am new with Fedora 21 but I am trying to learn C++ as well. So, in
> my compilation command of 
> "g++ -Wall `root-config --cflags --ldflags --libs` example.cpp" I am
> receiving the error message 
> "/usr/lib/gcc/i686-redhat-linux/4.9.2/../../../crt1.o: In function
> `_start':
> (.text+0x18): undefined reference to `main'
> collect2: error: ld returned 1 exit status"
> 
> After changing the compilation command to
> "g++ -ansi -Wall -I /usr/include -c example.cpp"
> 
> I no longer receive the error. 
> 
> However during linking command 
> "g++ -L /usr/lib/../../../ crt1.o *.o -lgsl -lgslcblas -lm"
> 
> I receive the following error message
> "g++: error: crt1.o: No such file or directory"
> 
> But, I know for sure that there is such a file. So, what could be
> wrong?


Ashur,

Please use the channels listed here for troubleshooting. This mailing
list is for infrastructure related discussion only.

https://fedoraproject.org/wiki/Communicating_and_getting_help
-- 
Thanks,
Regards,
Ankur Sinha

http://fedoraproject.org/wiki/User:Ankursinha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20150118/3cb1f6e4/attachment.sig>


More information about the infrastructure mailing list