| |
| |
| |
|
Comments:
<0> Hello! I am having trouble with a make. I know that certian header files are present, but make cannot find them. Any clues? (btw, I am rather a novice.) <1> can someone point me to a good site for creating a custom ***embler that produces elf object code? <2> im trying to do some inline arm asm with gcc and failing miserably <3> what mtune should i use for pentium d? mtune=pentium4 ? <4> Hello, does anybody know why printf("%d\n",sizeof(malloc(10000))); prints 8 on gcc 4.0.3 (Ubuntu 4.0.3-1ubuntu5)? <5> because it return's an pointer to the allocated memory <6> flosch, should'nt it be 4 then <5> maybe it's an x86-64 system? <7> hello, is x<?y a gcc extension?
<8> no, it's standard c <7> oh thanks <7> is interface a g++ extension? <8> interface? <7> defining interface in c++ <8> I'm not sure what you mean <8> like a pure virtual cl***? <7> yes <8> those are standard c++ <7> oh.... faint... i don't know that <7> but i have difficulty in finding information about "interface" in c++ <8> try "abstract cl***es" <8> or "pure virtual" <7> err.. i just saw this "#define interface cl***" in some header file... what the... <8> ... oh so that's what you meant <8> there is not standard "interface" keyword <8> and abusing the preprocessor in that way is certainly inept <7> i see. thanks <7> Zordan_, may i ask if you use IDE for programming c++ <8> sometimes <8> not on linux though <7> oh... i see. thanks <9> hi <9> i compile hello.cpp and i got this error <9> /tmp/ccGEiOn7.o: In function `main':hello.cpp:(.text+0x27): undefined reference to `std::cout' <9> :hello.cpp:(.text+0x2c): 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*)' <9> /tmp/ccGEiOn7.o: In function `__tcf_0':hello.cpp:(.text+0x46): undefined reference to `std::ios_base::Init::~Init()' <9> /tmp/ccGEiOn7.o: In function `__static_initialization_and_destruction_0(int, int)':hello.cpp:(.text+0x6f): undefined reference to `std::ios_base::Init::Init()' <9> /tmp/ccGEiOn7.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' <9> collect2: ld returned 1 exit status <9> which i have no idea what's gone wrong <8> looks like you probably linked with gcc instead of g++ <9> so i should just relink to g++? <8> "with" not "to" <9> ???
<9> my g++ is link to gcc-4.0 <9> nope, i meant g++ is linked to g++-4.0 <8> g++ is another frontend ... not a link <8> just "g++ hello.cpp -o foobar" <9> oh, <9> jesus <9> :( <9> basic fundament mistake <9> fundamental* <9> thanks <9> it's solved <8> np <9> you are very helpful Zordan_ <9> :) <9> bye <10> Hi! i have a newbie question, if i try to use undeclared struch, why the compiler gives strage error: 'error: storage size of 'sa' isn't known' instead something like 'struct 'sa' not declared', etc. ? <10> .. and where is struct sockaddr declared?? <11> apastinen: because using a struct not yet declared is not error, but using it for things where you need a storage size is. <10> nosha, hmm.. ok, maby i learn some day why it is not yet error.. =) <11> apasinen: its some form of capsulation, only things needing it have to see the decleration, everything else can work with pointers to it... <10> noshadow: ok, thanks.. i think i got it now.. =) <12> Hi. Can someone tell me why gcc issues a warning about no newline at end of file? (I am not complaining at all, I just want to know about the reason behind it, if anyone knows.) <8> the standard says that a source file has to end with a newline <12> thanks <13> If I have a C function that is fully inlined by the compiler (I checked) and thus never called, how do I stop it from also generating code for the function to allow it to be called ? <11> shevegen: if it does not have a \n at the end, it is no text file. And funny things can happen with non-text-files with many other tools. <14> Hi! With what function can i read exactly n byte from a file into a char*? <11> zzz: that is no gcc question but a question about you C lib. typically one calls read(2) repeatedly. <14> noshadow: oh, read is the function i need.... . thx. <13> Ahh, found out. To have inlined C functions not be generated for calling, declare them static. <15> Hrrg. Do any of you know intuitively how the GMP C++ interface works? <15> Because I'm trying to write a similar one for GSL, but it's quite difficult. <16> if i compile my unittests with -O0, i get all p***es. If i compile with -O1, I get an ***ertion failure. should i file a bug with gcc and attach code+ <16> it compiles clean with -Wall <16> has someone written a tool which serially compiles a program with different specific optimization options to track down which one causes gcc to generate incorrect code? <17> hello <17> I have a problem <17> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead. <17> why? <18> Can anyone tell me if there's some way to let the compiler know that an inline ASM block will modify a global variable? Declaring it volatile isn't doing it. <18> Also, I'm trying to give it a clobber list but it's saying "can't find a register in ____ cl***", is that because the registers are not clobbered in the actual ASM block?
Return to
#gcc or Go to some related
logs:
PAP network-manager wpa atp-get emule libxine1-main + ubuntu #redhat javascript onkeypress cross browser handing #linux firefox 5 init hang irqpoll 748 mysql_fix_privilege_tables.sql Error 1046
yup rpm sles oes
|
|