Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 4595 days ago | link | parent

Thanks a lot for the comments! Pauan's right that the indent sensitivity seems to require the two newlines, and it is indeed weird that responses get grouped with the next command. I'm still looking for a better approach.

I'm interested in that warning you get. Are you on a 64-bit system? Could you type in the following into gdb and share the results?

  $ gdb -q
  (gdb) p sizeof(int)
  (gdb) p sizeof(long)
  (gdb) p sizeof(void*)
Edit: I just noticed that gdb on my machine gives different results with and without a binary. So you'll need to invoke it from the wart directory like so:

  $ gdb -q wart_bin


2 points by kinleyd 4595 days ago | link

You are welcome, akkartik, and yes, I'm on a 64-bit system. Here's the info you wanted:

    [kdd@780 wart]$ gdb -q wart_bin
    Reading symbols from /home/kdd/My-Apps/wart/wart_bin...(no debugging symbols found)...done.
    (gdb) p sizeof(int)
    $1 = 4
    (gdb) p sizeof(long)
    $2 = 8
    (gdb) p sizeof(void*)
    $3 = 8

-----

1 point by akkartik 4595 days ago | link

Thanks! On my machine (gcc 4.4.3) I only get that warning for C files, not C++. Weird. What version gcc do you have?

  $ gcc --version

-----

2 points by kinleyd 4594 days ago | link

Also, it seems that error message came up only the first time I ran wart. I haven't seen it in later executions so there's probably no need for any additional concern. :)

-----

1 point by akkartik 4594 days ago | link

It comes up when building the C files. Since you haven't made any changes to the sources since there's no need to rebuild. But you can see it again if you first run:

  $ make clean

-----

2 points by kinleyd 4594 days ago | link

Ah yes, I see that now. So may be something to sweat a bit about, after all. :)

-----

2 points by kinleyd 4595 days ago | link

gcc 4.7.2

-----