PandaNL
PandaNL

Reputation: 848

Compiling error

I downloaded someone's source code for a program and i needed to make some changes.

Now i want to compile it but it doesn't seem to work.

PROGS = isotociso
COMMON = tools.o bn.o ec.o  wiidisc.o rijndael.o
DEFINES = -DLARGE_FILES -D_FILE_OFFSET_BITS=64
LIBS = C:/Dev-Cpp/lib/libwsock32.a C:/Dev-Cpp/lib/libcrypto.a C:/Dev-Cpp/lib/libcomdlg32.a

CC = gcc
#CFLAGS = -Wall -W -Os -Ilibwbfs -I.
CFLAGS = -Wall -m32 -W  -ggdb -Ilibwbfs -I.
LDFLAGS = -m32 -static

VPATH+=libwbfs
OBJS = $(patsubst %,%.o,$(PROGS)) $(COMMON)

all: $(PROGS)

$(PROGS): %: %.o $(COMMON) Makefile
 $(CC) $(CFLAGS) $(LDFLAGS) $< $(COMMON) $(LIBS) -o $@

$(OBJS): %.o: %.c tools.h Makefile
 $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@ 

clean:
 -rm -f $(OBJS) $(PROGS)

Output

C:\Users\Panda\Desktop\uloader_v4.1\src\isotociso\src>make
gcc -Wall -m32 -W  -ggdb -Ilibwbfs -I. -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -c i
sotociso.c -o isotociso.o
process_begin: CreateProcess((null), gcc -Wall -m32 -W -ggdb -Ilibwbfs -I. -DLAR
GE_FILES -D_FILE_OFFSET_BITS=64 -c isotociso.c -o isotociso.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [isotociso.o] Error 2

What would be the problem?

Upvotes: 0

Views: 438

Answers (3)

bmargulies
bmargulies

Reputation: 100196

Looks to me as if gcc is not in your PATH.

It also looks like you need MinGW to get the libraries.

Upvotes: 1

Lars
Lars

Reputation: 1387

I am no expert in C(++) development under Windows, but my interpretation would be that it can't find the compiler itself. What development environment are you using?

Upvotes: 1

Joseph Salisbury
Joseph Salisbury

Reputation: 2177

It looks like it can't find a file. Are you sure you have all the required source files?

Upvotes: 0

Related Questions