public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Link Problem...
@ 1999-07-15 22:46 textshop
  0 siblings, 0 replies; 2+ messages in thread
From: textshop @ 1999-07-15 22:46 UTC (permalink / raw)
  To: egcs-bugs

Hello!
<1> First Problem
I want to get window-based executable file.
So I tried as following:
gcc -Wl,--subsystem,windows -o test test.o -lgdi32 -luser32
Nevertheless it works with dos platform.
Help me.
<2> Second problem
I complied resource file with windres in the type of coff.
If there are korean language (namely HANGEUL)characters in the strings
of resouce file, Dialog box can not be created. What is the matter?
Thank you.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Link problem
@ 1999-12-31 20:54 nbecker
  0 siblings, 0 replies; 2+ messages in thread
From: nbecker @ 1999-12-31 20:54 UTC (permalink / raw)
  To: gcc-bugs

gcc-2.95.1 i686-pc-linux-gnu (RH6.1).

I want to use electric fence (efence) to check on allocations in c++
code.

Linking with:

g++ Test.o -lefence

Doesn't work correctly.  Even

g++ Test.o -lefence -lc -lefence

won't work.  For example:

------------trash.cc
main () {
  double* x = new double[100];
}
------------
g++ -v -o trash trash.cc -lefence -lc -lefence
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 -o trash /usr/lib/crt1.o
/usr/lib/crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/crtbegin.o
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.1
-L/usr/i686-pc-linux-gnu/lib /tmp/cc2XyLMA.o -lefence -lefence
-lstdc++ -lm -lc -lgcc -lc -lgcc
/usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/crtend.o /usr/lib/crtn.o

Notice that -lefence is now only before -lc.  So all allocations from
within stdc++ and libc are not checked.  Guess what happens to the
"new double[]"?  It isn't checked.

The workaround is to link manually, but can't we fix this properly?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-31 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-15 22:46 Link Problem textshop
1999-12-31 20:54 Link problem nbecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).