This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30329] New: Gcc Linker problem
- From: "shantibhushan dot sale at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2006 07:01:48 -0000
- Subject: [Bug c/30329] New: Gcc Linker problem
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
If i have a shared lib with some name like FTPobex with funtion name
Func1()
{
printf("First function");
}
And i have my local function
void main()
{
Func1();/i call this function here using shared lib
}
//local function
Func1()
{
printf("First function");
}
Here,Func1() is a local function for this program .My program is not giving any
linker error on this when i compiled it using GCC.There are 2 definitions of
same function then also it works..Amazaing...?
Then i remove my local Func1() function then it goes to shaerd lib
funciotn and access that...Quite strange ? TRy it.
Hope GCC developers will look on it.
shantibhushan.sal2@gmail.com
--
Summary: Gcc Linker problem
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: shantibhushan dot sale at gmail dot com
GCC build triplet: GCC
GCC host triplet: Linux
GCC target triplet: Linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30329