This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/30329] New: Gcc Linker problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]