Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I am designing the User interface using fancypants opensource library having entry point is fp_main(). To generalize my module with another modules i want to change fp_main() to main() ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    50

    How to change name of main() to another or reverse

    Hi,

    I am designing the User interface using fancypants opensource library having entry point is fp_main().

    To generalize my module with another modules i want to change fp_main() to main()

    Can I give some preprocessing commands to compiler for this? Is it possible?

    Or something with another solution?

    Please help!

  2. #2
    Just Joined!
    Join Date
    Feb 2008
    Posts
    50
    I did it at command prompt while compile my sample application, by giving -D option
    e.g. -Dfp_main=main

    But I am using Eclipse IDE where I am unable to compile application with -D option

    Does anybody know, how to set -D at Eclipse.

    I tried with Project Properties->C/C++ Build->Linker flags at Miscellaneous option.

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    50
    SOLVED...

    I got it at Eclipse also and it is working now with main().


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...