New Compiler

This is a discussion on New Compiler within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by dead_captain I was using DEV-C++, and that was a simple app. I can't seem to get the ...

  1. #16
    Registered User
    Join Date
    May 2006
    Posts
    903
    Quote Originally Posted by dead_captain View Post
    I was using DEV-C++, and that was a simple app. I can't seem to get the code to compile in VC++, I can't even find the compile icon. Is the whole app different? Do I have to learn new c ++ code? AHHH!
    In Express 2005 you needed to hit F7 to compile and then Ctrl + F5 to run. Just check in the "Compile" menu or something like that. Note that you need to create a new project in order to compile. You can't compile a single file if it is not part of a project.

  2. #17
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,968
    There's no build or compile app. Goto the Build menu and select build solution.
    Oh yeah. My VC++ 2005 Express has those buttons, but if I remember correctly that is because I configured it to have them right after installation.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #18
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,167
    As with all new programs, you just need to get used to it. It's much different from dev-c++.
    But you can actually show the Build toolbar to add build to the toolbar. Or you can customize it to add build to the toolbar.
    I haven't seen any build on the toolbar by default, however.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  4. #19
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by laserlight View Post
    That is not true. See the FAQ:
    pwnd, I like that.

    But I am wondering, does the lack of restriction on software you distribute mean you have to also forfeit those restrictions when distributing, meaning you can't create "proprietary" code and have to distribute everything open?

  5. #20
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,607
    Quote Originally Posted by cpjust View Post
    I find the new online MSDN library kind of annoying when looking for things. I'm glad I still have a copy of the old MSDN app from the pre .NET days. It's not up to date, but searching & bookmarking is a lot easier.
    Drop the old and get the new:
    http://cboard.cprogramming.com/showt...161#post704161

    gg

  6. #21
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,968
    But I am wondering, does the lack of restriction on software you distribute mean you have to also forfeit those restrictions when distributing, meaning you can't create "proprietary" code and have to distribute everything open?
    But that would be a restriction on licensing akin to the copyleft of the GPL.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #22
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,167
    There are no licensing restrictions, so basically you are free to do with the applications what you will.
    The only thing that isn't allowed is redistributing the debug runtime libraries. So you can't give someone a debug copy of your app if they don't have Visual Studio installed!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  8. #23
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    I am currently watching the C++ video that the site offered. I have type the code in as it appears on the video.
    Code:
    #include "nazi.h"
    
    int main (int argc, char* argv[])
    (
    
        std::cout<<"john wayne was a nazi!";
    	return 0;
    )
    I notice that there is a bar at the top that says "(global scope)" and next to directly to the right is the same type of bar. On the video after the intmain input was added it appeard on the right bar. On my machine it didn't. Does anyone know what is wrong?

  9. #24
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    LOL!

  10. #25
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,167
    Yes, lol to that code, but I don't know what you're talking about, so how about a link to the video?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  11. #26
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    http://go.microsoft.com/?linkid=7773855

    Sorry if my term "bar at the top" is incorrect, but please look for it. It is one of those selection bars with an arrow. (drrr)

    I believe the problem i am have is with the intmain() function not showing up there.

    Also when I compile the comes up:
    error C2059: syntax error : 'return'
    and this: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

  12. #27
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,167
    What line? The code is correct.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  13. #28
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    I don't know, but these compile errors are are always there. I have tried to change code, and nothing seem to work. It sucks. When she does it on the video it works fine, all I changed was the words.

  14. #29
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    1>------ Build started: Project: mdc, Configuration: Debug Win32 ------
    1>Compiling...
    1>johnwayne.cpp
    1>c:\users\r.lyda\documents\c++\mdc\mdc\johnwayne. cpp(6) : error C2143: syntax error : missing ')' before ';'
    1>c:\users\r.lyda\documents\c++\mdc\mdc\johnwayne. cpp(6) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\r.lyda\documents\c++\mdc\mdc\johnwayne. cpp(6) : error C2059: syntax error : '<<'
    1>c:\users\r.lyda\documents\c++\mdc\mdc\johnwayne. cpp(8) : error C2059: syntax error : ')'
    1>c:\users\r.lyda\documents\c++\mdc\mdc\johnwayne. cpp(9) : error C2059: syntax error : 'return'

  15. #30
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,167
    Alright, so you didn't actually include iostream anywhere?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

Page 2 of 3 FirstFirst 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  4. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21