Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 197061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:49:14+00:00 2026-05-11T16:49:14+00:00

I need to write a small program for the university. The problem is, it

  • 0

I need to write a small program for the university. The problem is, it has to be in C/C++ under linux, and I’ve never used linux, I anticipate having a lot of problems with the IDE, compilation, and all that.

Is it possible to code it under windows and then “copy/paste” the code and compile it under linux? What are limitations I should know about if it’s at all possible?

It will be a small program, typical client/server communication using sockets.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:49:14+00:00Added an answer on May 11, 2026 at 4:49 pm

    I think you should go ahead and do it under Linux (gcc?). This will teach you some stuff about ‘old school’ programming. Forget about using an IDE, use vim (if you already get it) or nedit (more like notepad).

    Compile on the command line. Link it yourself. Write a make file to do this.

    This is the basics. You need to understand it before using an IDE. Do this while you are still at university, because it’s a pain and you will (and should) want to use an IDE for real work!

    Also, a basic understanding of Unix is not hard to achieve (I have found my way around Solaris, Ubuntu and OS X, coming from a Windows background) – a few simple tutorials should get you up and running. For writing small school projects, there is not much you need to know: cd, ls, mkdir, make, gcc (be sure to use g++ for C++ projects – that has bitten me on my Mac before…). Stay close to your home directory (~).

    Doing your project on the target system will help you get certain stuff right: When doing these simple sockets and pthreads examples, I found compiling and linking them to be non-platform portable. On certain systems, linking in the libraries needs to be done this way, on others that way.

    BTW: If you really do want to do this under Windows, your best bet is to have a POSIX environment under Windows. POSIX sockets are different to the Windows networking model if I remember correctly.

    Try either MinGW or Cygwin. Both should give you the *nix development environment under Windows. You can use your favorite text editor (a Windows port of vim?) and cmd.exe instead of bash for starting the compiler 🙂

    EDIT: Sorry, if the tone is confrontational (according to comment). I will try to soften it a bit. It’s just… I have seen quite a few people trying to learn C/C++ (or Java for that matter) with IDEs and have come to believe that they get in the way for starting off. Sure, you will need better tools for real life programs, but the overhead of project files etc. for school sample projects adds clutter. It also makes it harder to email your homework to your teacher – a zip with a bunch of .c and .h files and a makefile is really as simple as it gets…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 313k
  • Answers 313k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer All Throwables except subclasses of java.lang.RuntimeException or java.lang.Error are checked.… May 13, 2026 at 10:50 pm
  • Editorial Team
    Editorial Team added an answer I can't give you a direct answer off-hand here, but… May 13, 2026 at 10:50 pm
  • Editorial Team
    Editorial Team added an answer Have you considered using JSON2 instead of eval()? Details here. May 13, 2026 at 10:50 pm

Related Questions

As the title says, I need to write a small program to read data
I have an assignment about fftw and I was trying to write a small
I have a large server log file (~750 MB) which I can't open with
I have a friend who is finishing up his masters degree in aerospace engineering.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.