V
vfunc
Despite a #ifndef I am getting a redefinition error
The offending .h file looks like the following
#ifndef DISTRIB_H
#define DISTRIB_H
double dblpi; // this is getting compiled twice
etc...
#endif
.... and my make file is as follows
CC = g++
# CFLAGS = -ggdb
INC =
SRCS = loader.cpp distrib.cpp main.cpp
OBJS = $(SRCS:.c=.o)
LIBS =
TARGET = ldisp.exe
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
# clean:
# rm -f $(OBJS) $(TARGET)
The offending .h file looks like the following
#ifndef DISTRIB_H
#define DISTRIB_H
double dblpi; // this is getting compiled twice
etc...
#endif
.... and my make file is as follows
CC = g++
# CFLAGS = -ggdb
INC =
SRCS = loader.cpp distrib.cpp main.cpp
OBJS = $(SRCS:.c=.o)
LIBS =
TARGET = ldisp.exe
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
# clean:
# rm -f $(OBJS) $(TARGET)