[C/C++] VS 2008 express wil mijn makefile niet converteren

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 22-09 14:35
Heren,

Het is alweer even geleden dat ik aan het coden was, maar ik had vandaag het goede idee weer eens te beginnen.

Ik heb de nieuwe lotus notes C Api gedownload, en ik wil wat van de sample apps compilen, maar vs 2008 Express wil de makefiles niet converteren.

De foutmelding
Afbeeldingslocatie: http://www.d2k.nl/upload/error.png

de makefile.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# makefile for Notes API sample program FIND_DBS
# Windows 32-bit version using Microsoft Visual C++ .NET compiler
# and linker.
#
# This makefile assumes that the INCLUDE and LIB environment variables
# are set up to point at the Notes and C "include" and "lib" directories.

# Standard Windows 32-bit make definitions
!include <ntwin32.mak>

# The name of the program.

PROGNAME = find_dbs

cpuflags = /Zp

# Dependencies

$(PROGNAME).EXE: $(PROGNAME).OBJ
$(PROGNAME).OBJ: $(PROGNAME).C

# Compilation command.

.C.OBJ:
    $(cc) $(cdebug) $(cflags) $(cpuflags) /DNT $(cvars) $*.c

# Link command.

.OBJ.EXE:
    $(link) $(linkdebug) $(conflags) -out:$@ $** $(conlibs) \
        notes.lib user32.lib


Niets bijzonders me dunkt?

maar ook nmake /f <make>.mak /a doet het niet (vanuit de VS install dir)


Wie schopt me even de goede kant op?

Doet iets met Cloud (MS/IBM)


Acties:
  • 0 Henk 'm!

  • Soultaker
  • Registratie: September 2000
  • Laatst online: 23:05
Waarom maak je niet gewoon een nieuw project aan?
maar ook nmake /f <make>.mak /a doet het niet (vanuit de VS install dir)
"doet het niet", daar kunnen we niets mee. Wat voor foutmelding krijg je? Ik neem aan dat je de Visual Studio command prompt gebruikt?

Acties:
  • 0 Henk 'm!

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 22-09 14:35
Soultaker schreef op woensdag 08 april 2009 @ 22:39:
Waarom maak je niet gewoon een nieuw project aan?
*kuch* kreeg ik niet aan de gang *kuch*
[...]

"doet het niet", daar kunnen we niets mee. Wat voor foutmelding krijg je? Ik neem aan dat je de Visual Studio command prompt gebruikt?
Error:
D:\Program Files\Microsoft Visual Studio 9.0\VC>nmake /f D:\Downloads\CZ15IEN\notesapi\samples\basic\dbprops\mswin32.mak /a

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

NMAKE : fatal error U1073: don't know how to make 'dbprops.C'
Stop.
Overigens heb ik gister vanuit de directory zelf wel met nmake die app kunnen builden?
Ik wilde graag VS gebruiken als editor, maar als het niet goedschiks kan zal ik wel weer oldskool geen IDE gebruiken maar commandline werken. ;)


.edit:

hmmz, als ik het zo doe werkt het wel
Setting environment for using Microsoft Visual Studio 2008 x86 tools.

D:\Program Files\Microsoft Visual Studio 9.0\VC>cd D:\Downloads\CZ15IEN\notesapi
\samples\server\addin

D:\Downloads\CZ15IEN\notesapi\samples\server\addin>nmake /f mswin32.mak /a

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

cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X
86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -DNTDDI_VERSION=0x050
00000 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MTd /Zp /DNT addin.c
addin.c
link /DEBUG /DEBUGTYPE:cv /INCREMENTAL:NO /NOLOGO -subsystem:console,5.
0 addin.obj notes0.obj notesai0.obj kernel32.lib ws2_32.lib mswsock.lib advapi
32.lib notes.lib user32.lib -out:naddin.exe

D:\Downloads\CZ15IEN\notesapi\samples\server\addin>

[ Voor 33% gewijzigd door D2k op 09-04-2009 09:00 . Reden: extra info ]

Doet iets met Cloud (MS/IBM)