نمایش نتایج 1 تا 7 از 7

نام تاپیک: C++‎ و لینوکس

  1. #1

    C++‎ و لینوکس

    باسلام
    اگه برنامه ای با سی بیلدر نوشته باشیم چطوری میشه برنامه رو تحت لینوکس اجرا کرد؟

  2. #2
    شاید با wine .
    UNIX is simple. It just takes a genius to understand its simplicity
    -- Dennis Ritchie

  3. #3

    Post

    با wine فایل های اجرایی تحت وندوز رو میشه اجرا کرد ولی فکر می کنم منظور دوستمون کامپایل و دیباگ کدش بود که در اینصورت باید از G++ استفاده کنن .

  4. #4
    یعنی خود C++‎ این قابلیت رو نداره ؟

    (23 حمایت کامل از CLX کلاسهای پایه تولید نرم افزار مستقل از سیستم عامل - قابلیت کامپایل روی محیط کایلیکس- لینوکس )

    (33 دارای قابلیت تولید برنامه های سرویس برای ویندوز و لینوکس .

  5. #5
    با سلام

    وقتی یه برنامتو با کامپایلر رو یه سیستم عامل برای اون سیستم کامپایل کنی کدی فقط برای اون سیستم شناخته شده است
    اگه میخوای رو سیستم دیگه ای اجرا کنی واسه اون کامپایلر گیر بیار و کامپایلش کن
    دوستمون بالا یه کامپایلر خوب واسه لینوکس معرفی کرد که میتونی بعد اشکال زدایی و کامل کردن برنامت با اون واسه لینوکس کامپایلش کنی


  6. #6
    <H1>Integrated Development Environments / RAD tools / GUI-builders on Linux:






    Warning: Some of the above are binary-only and x86-Linux-only.

    </H1>
    آخرین ویرایش به وسیله administors : چهارشنبه 21 فروردین 1387 در 01:33 صبح

  7. #7

    نقل قول: C++‎ و لینوکس

    1. Install and Use C++‎ Compilers on Linux


    Many Linux distributions include GCC as a preinstalled compiler. You can use GCC to compile and run C++‎ programs written with C Builder.


    GCC allows you to compile C Builder programs easily; use its "g++" command. For instance, to compile hello.exe you could enter this syntax:


    G++ Hello.exe will generate an executable file named a.out that you can run using the command:


    2. Use a C++‎ IDE on Linux
    Linux users have their choice of several C++‎ integrated development environments (IDEs), including Eclipse, KDevelop and CLion for running C Builder programs compiled with this language. These IDEs make compiling and running your code faster while giving more options than doing so manually.


    To compile a C Builder program with a C++‎ IDE, the project needs to be imported into it first and then run using its tools for compilation and execution.


    3. Make Use of Cross-Compilers
    A cross-compiler is a type of compiler which generates executable files for platforms other than its host platform - for instance, using it can enable Windows machines to produce executable files suitable for Linux platforms and vice versa.


    To use a cross-compiler to compile C Builder programs, first install it on your machine. Once it's set up, you can compile using similar commands as when compiling with GCC.


    Note: C Builder programs may utilize libraries or resources not readily available on Linux; in such instances, porting your program will likely be necessary before running it successfully.


    Which option should be your choice?


    Your best option depends entirely on your own specific requirements and preferences. If you already know GCC or another C++‎ compiler on Linux, that might be best as it allows for faster compilation and execution of C Builder programs.


    For an integrated solution, consider using a C++‎ IDE on Linux.


    If you want to compile your program for Linux, using a cross-compiler may be required.

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •