[petsc-users] 答复: 答复: 答复: 答复: 答复: 答复: 转发: PETsc problem

Satish Balay balay at mcs.anl.gov
Tue May 21 09:42:57 CDT 2013


On Tue, 21 May 2013, 余浩 wrote:

> I have a program OK.cpp in the directory d:/Program Files/VC/

thats a strange location to do compiles.
> 
> #incldue<stdio.h>

hm - typo?

> int main()
> {
> printf("OK");
> return 0;
> }
> 
> after cl OK.cpp ,
> 
> Microsoft <R> 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80X86
> Copyright <C> Microsoft Corposration. All rights reserved.
> 
> OK.cpp
> Microsoft <R> Incremental Linker Version 10.00.30319.01
> Copyright <C> MIcrosoft Corporation. All rights reserved.
> 
> /out:OK.exe
> OK.obj
> 
> 
> Thanks!

Please copy/paste the complete output from the following sequence of
commands.

Satish

---------

C:¥cygwin¥home¥balay¥junk>cl OK.c
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

OK.c
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:OK.exe
OK.obj

C:¥cygwin¥home¥balay¥junk>echo %errorlevel%
0

C:¥cygwin¥home¥balay¥junk>c:¥cygwin¥bin¥bash --login

balay at msnehalem2 ‾
$ cd junk/

balay at msnehalem2 ‾/junk
$ cl OK.c
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.762 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

OK.c
Microsoft (R) Incremental Linker Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:OK.exe
OK.obj

balay at msnehalem2 ‾/junk
$ echo $?
0

balay at msnehalem2 ‾/junk
$ ‾/petsc.clone/bin/win32fe/win32fe cl -c OK.c
OK.c

balay at msnehalem2 ‾/junk
$ echo $?
0
















More information about the petsc-users mailing list