-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sun, Oct 29, 2017 at 11:53:22AM +0100, Thomas Schmitt wrote:
> Hi,
>
> to...@tuxteam.de wrote:
> > https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
>
> But my example code has no nested functions.
> The two functions are disjoint. The main
Hi,
to...@tuxteam.de wrote:
> https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html
But my example code has no nested functions.
The two functions are disjoint. The main() function only contains
a type declaration by function prototype, not the function body.
I can change the code to plain K&
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sat, Oct 28, 2017 at 11:35:59PM +0200, Thomas Schmitt wrote:
> Hi,
>
> it seems that gcc just hates a static function declaration inside a function.
>
> This code (without any include)
>
> static int bla(int x)
> {
>return (x != 1);
> }
On 10/28/2017 02:30 PM, Roberto C. Sánchez wrote:
On Sat, Oct 28, 2017 at 01:55:54PM -0700, Fred wrote:
Hi,
The source is at https://www.pastebin.com/X4a4p9U2
There are many similar lines with static keyword which the compiler didn't
complain about.
Except that every other line with the stati
Hi,
it seems that gcc just hates a static function declaration inside a function.
This code (without any include)
static int bla(int x)
{
return (x != 1);
}
int main()
{
static int bla(int x);
return(bla(0));
}
yields
t.c: In function ‘main’:
t.c:19:13: error: invalid
On Sat, Oct 28, 2017 at 01:55:54PM -0700, Fred wrote:
> Hi,
> The source is at https://www.pastebin.com/X4a4p9U2
>
> There are many similar lines with static keyword which the compiler didn't
> complain about.
>
Except that every other line with the static keyword in that file is a
proper functi
On 10/28/2017 09:50 AM, Roberto C. Sánchez wrote:
On Sat, Oct 28, 2017 at 09:29:16AM -0700, Fred wrote:
Hello,
I need to compile an older program and have a compile error. How can I
resolve this? Unfortunately I am not a C programmer although I do assembler
programming.
Here is the output of
On Sat, Oct 28, 2017 at 09:29:16AM -0700, Fred wrote:
> Hello,
>
> I need to compile an older program and have a compile error. How can I
> resolve this? Unfortunately I am not a C programmer although I do assembler
> programming.
>
> Here is the output of make:
>
> making all in ./src...
> ma
Hello,
I need to compile an older program and have a compile error. How can I
resolve this? Unfortunately I am not a C programmer although I do
assembler programming.
Here is the output of make:
making all in ./src...
make[1]: Entering directory '/opt/pcb-1.6.3p/src'
gcc -m32 -g -O2 -fno-s
9 matches
Mail list logo