Thread: newbie question *blush*

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    2

    Unhappy newbie question *blush*

    Hello there. I have a little problem.

    I just want to setup something, WHATEVER, to start tinkering with c++ on my comp, I've already dabbled in C and PHP, I don't know ........ about programming but have fun tinkering with it.

    My problem is:

    Yeah, there are a lot of tutorials. That's good. But I get lost with them! I've finally managed to download bloodshed and the template code gives me errors... I can find

    I'm windows XP, is anyone kind enough to point me in some direction? Any advice will be appreciated.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What errors?

    Are you trying to build a Windows project or a console (command prompt) application?

    For windows apps, I can foresee that you may need additional components (such as the Windows Platform SDK - Now called Windows SDK, formerly Platform SDK).

    Edit: Start simple. Create an EMPTY project that is "console application", add a new file "Hello.c", then copy in this code:
    Code:
    #include <stdio.h>
    
    int main()
    {
       printf("Hello, World\n");
       return 0;
    }
    If it doesn't compile, please post errors here.

    --
    Mats
    Last edited by matsp; 03-10-2008 at 08:25 AM.
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    2
    I used what you posted and doesn't compile, says the following:

    [Linker error] undefined reference to `__cpu_features_init'

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Seems like you are missing some startup code. Are you sure you installed everything as it should?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Newbie question
    By TimL in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2008, 04:43 AM
  2. C prog newbie question
    By Draginzuzu in forum C Programming
    Replies: 1
    Last Post: 02-03-2003, 06:45 PM
  3. a stupid question from a newbie
    By newcomer in forum C++ Programming
    Replies: 4
    Last Post: 01-11-2003, 04:38 PM
  4. confusion with integers (newbie question)
    By imortal in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 04:09 PM
  5. newbie class templates question
    By daysleeper in forum C++ Programming
    Replies: 2
    Last Post: 09-18-2001, 09:50 AM