Click here to Skip to main content
15,892,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Short time format Pin
_Flaviu6-Jan-14 1:06
_Flaviu6-Jan-14 1:06 
QuestionRe: Short time format Pin
_Flaviu6-Jan-14 1:40
_Flaviu6-Jan-14 1:40 
GeneralRe: Short time format Pin
Richard MacCutchan6-Jan-14 2:20
mveRichard MacCutchan6-Jan-14 2:20 
GeneralRe: Short time format Pin
_Flaviu6-Jan-14 2:24
_Flaviu6-Jan-14 2:24 
AnswerRe: Short time format Pin
David Crow6-Jan-14 5:03
David Crow6-Jan-14 5:03 
GeneralRe: Short time format Pin
_Flaviu6-Jan-14 20:44
_Flaviu6-Jan-14 20:44 
AnswerRe: Short time format Pin
Peter Leow6-Jan-14 1:06
professionalPeter Leow6-Jan-14 1:06 
Question[build c++ by command line on windows OS][visual studio 2008] Pin
Thong LeTrung5-Jan-14 21:32
Thong LeTrung5-Jan-14 21:32 
i have main.cpp ,makefile , build.bat
//----------main.cpp----------------------------
#include <iostream>

int main()
{
std::cout << "hello world." << std::endl;
return 0;
}

//--------------makefile-------------------------
foo: main.cpp
CL main.cpp

//-------------build.bat--------------------------

@echoOFF
echo buid by commnand line
nmake
echo =============================
echo run main.exe
echo =============================
main.exe

i use "Visual Studio command prompt " to run build.bat file .

+ with visual studio 2010 : ok
+ with visual studio 2008 : error


please help me how to fix on visual 2008 .


Thanks
Thong LT

============================visual studio 2010================
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd c:\Users\ttle\Desktop\
demo

c:\Users\ttle\Desktop\demo>build.bat
buid by commnand line

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

CL main.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

main.cpp
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled. S
pecify /EHsc
Microsoft (R) Incremental Linker Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.

/out:main.exe
main.obj
=============================
run main.exe
=============================
hello world.

//====================Visual studio 2008 ----------------
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

main.cpp
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : war
ning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp
ecify /EHsc
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

/out:main.exe
main.obj
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\CL.EXE"' : return code '0x2'
Stop.
=============================
run main.exe
=============================
'main.exe' is not recognized as an internal or external command,
operable program or batch file.
AnswerRe: [build c++ by command line on windows OS][visual studio 2008] Pin
Richard MacCutchan5-Jan-14 22:22
mveRichard MacCutchan5-Jan-14 22:22 
QuestionHow to build QT application statically Pin
Utheen5-Jan-14 17:45
Utheen5-Jan-14 17:45 
AnswerRe: How to build QT application statically Pin
Richard MacCutchan5-Jan-14 22:19
mveRichard MacCutchan5-Jan-14 22:19 
AnswerRe: How to build QT application statically Pin
Marco Bertschi6-Jan-14 0:12
protectorMarco Bertschi6-Jan-14 0:12 
GeneralRe: How to build QT application statically Pin
Utheen6-Jan-14 0:23
Utheen6-Jan-14 0:23 
GeneralRe: How to build QT application statically Pin
Marco Bertschi6-Jan-14 0:43
protectorMarco Bertschi6-Jan-14 0:43 
GeneralRe: How to build QT application statically Pin
Utheen6-Jan-14 0:52
Utheen6-Jan-14 0:52 
GeneralRe: How to build QT application statically Pin
Marco Bertschi6-Jan-14 1:00
protectorMarco Bertschi6-Jan-14 1:00 
GeneralRe: How to build QT application statically Pin
Utheen6-Jan-14 2:09
Utheen6-Jan-14 2:09 
GeneralRe: How to build QT application statically Pin
Gisle Vanem6-Jan-14 21:34
Gisle Vanem6-Jan-14 21:34 
GeneralRe: How to build QT application statically Pin
Utheen7-Jan-14 17:41
Utheen7-Jan-14 17:41 
GeneralRe: How to build QT application statically Pin
Gisle Vanem7-Jan-14 22:57
Gisle Vanem7-Jan-14 22:57 
Question[SOLVED}stack vs. heap objects: how to destruct only heap ones? Pin
liquid_4-Jan-14 6:12
liquid_4-Jan-14 6:12 
AnswerRe: stack vs. heap objects Pin
Richard Andrew x644-Jan-14 7:16
professionalRichard Andrew x644-Jan-14 7:16 
GeneralRe: stack vs. heap objects Pin
liquid_4-Jan-14 11:28
liquid_4-Jan-14 11:28 
GeneralRe: stack vs. heap objects Pin
Richard Andrew x644-Jan-14 13:34
professionalRichard Andrew x644-Jan-14 13:34 
Question[SOLVED] Toolbar style window Pin
Richard Andrew x643-Jan-14 3:09
professionalRichard Andrew x643-Jan-14 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.