-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
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
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
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
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...
>
On Thursday, 09 September 2004 11:55, Paul Akkermans wrote:
Hi everyone,
I am trying to compile the following program. But from the output I
get the feeling that not all links are made. I believe this is due to
the fact that not all libraries are included during the compilation.
[ ... ]
Incoming from Wesley J Landaker:
On Thursday, 09 September 2004 11:55, Paul Akkermans wrote:
Hi everyone,
I am trying to compile the following program. But from the output I
get the feeling that not all links are made. I believe this is due to
the fact that not all libraries are
If you are compiling a program like the following:
#include stdio.h
int main()
{
printf(Hello Linux Adicts);
}
It will send you the error because you are declaring
that the main will return and int and you are not
returning anythig so the correct program should be:
#include stdio.h
int
drivers/sound/sounddrivers.o(.data+0x274): undefined
references to 'local symbols in discarded section
.text.exit'
make:*** [vmlinux] Error 1
I got this problem when compiling the kernel
2.4.17-rc1 as well as 2.4.16. I asked one time in the
list and got not-useful info yet. By the way I
On Mon, 17 Dec 2001, Steve Kieu wrote:
drivers/sound/sounddrivers.o(.data+0x274): undefined
references to 'local symbols in discarded section
.text.exit'
make:*** [vmlinux] Error 1
I got this problem when compiling the kernel
2.4.17-rc1 as well as 2.4.16. I asked one time in
On Sun, Dec 16, 2001 at 08:00:07PM -0600, [EMAIL PROTECTED] wrote:
I'm trying to compile 2.4.16 for my laptop. I do all the
drivers/sound/sounddrivers.o(.data+0x274): undefined references to 'local
symbols in discarded section .text.exit'
make:*** [vmlinux] Error 1
What's going on?
First I tried compiling the 2.5.1 kernel, it compiled fine, but I got alot of
lock-ups when I rebooted.
So I downgraded my binutils, and compiled the 2.4.16, and am doing fine.
Thanks for the help.
John
Hans Ekbrand [EMAIL PROTECTED] wrote ..
On Sun, Dec 16, 2001 at 08:00:07PM -0600,
make dep before making bzlilo
also what version of gcc are you using? gcc --version
On Sun, 2001-12-16 at 21:00, [EMAIL PROTECTED] wrote:
I'm trying to compile 2.4.16 for my laptop. I do all the
make clean
make mrproper
make menuconfig
all work fine, but when I do make bzImage,
I get
make dep before making bzlilo
I did do make dep, after the make menuconfig.
also what version of gcc are you using? gcc --version
2.95.4
I'm running woody, I have done kernel compiles on this machine before.
Right now it's running 2.4.3
John
Marc Britten [EMAIL PROTECTED] wrote ..
Thus spake Marc Britten:
make dep before making bzlilo
also what version of gcc are you using? gcc --version
On Sun, 2001-12-16 at 21:00, [EMAIL PROTECTED] wrote:
I'm trying to compile 2.4.16 for my laptop. I do all the
make clean
make mrproper
make menuconfig
all work fine,
Hi all,
When I try to compile a program with -l*(anything from /usr/X11R6/lib), I get
no such a file or directory error.
Usually, the options are:
gcc -L/usr/X11R6/lib -lX11 -lXaw -l.
I have /usr/X11R6/lib in my /etc/ld.so.conf,
Those are for run-time linking, not for compile
On Mon, 17 Mar 1997, David Puryear wrote:
Hi all,
When I try to compile a program with -l*(anything from /usr/X11R6/lib), I get
no such a file or directory error. I have /usr/X11R6/lib in my
/etc/ld.so.conf,
and I have ran ldconfig -v. I'm out of ideas as to what I need to do in order
20 matches
Mail list logo