Archived

This forum has been archived. Please start a new discussion on GitHub.

Makefile assistance for example code in linux/freebsd

Hi There,

Can anyone guide me simple steps to generate Makefile for Ice demo examples available on windows binary installation to be executed on linux/freebsd?

Do ZeroC provide Makefile for demo examples for any linux distro?

Cheers.

Surya

Comments

  • I'm not sure what exactly you are after. There are makefiles for the demos in the source distribution, both for Windows and and for Linux. You can use those as a model for your own code.

    Cheers,

    Michi.
  • Oh Sorry. Yes, I can find the Makefiles.

    I am having problem finding c_r library for linking on freebsd. What could be the alternative library I can use? What is the purpose of c_r library?

    Cheers.

    Surya
  • spsoni wrote: »
    I am having problem finding c_r library for linking on freebsd. What could be the alternative library I can use? What is the purpose of c_r library?

    I found it, libc_r is deprecated in freebsd.

    Hence, in Makefile somewhere, -lpthread can be used for linking.

    Also, a quick note to all newbies like me, if make command is not working
    make <TARGET>
    

    use
    gmake <TARGET>
    

    since all Makefile bundled with Ice are GNU Makefiles, not fully compatible with make

    Cheers.

    Surya