From: Gisle V. <gi...@bg...> - 2003-02-03 16:49:18
|
I've some questions regarding building DLLs with MingW32. I have the following in my makefile: ----------------------------------- .. CFLAGS += -shared -D_DLL OBJ_DIR = MingW32_obj_dll LIBS = -lwsock32 define build_dll dllwrap --mno-cygwin --def $(DEF_FILE) --implib $(OBJ_DIR)/libwpcap.a \ -s -o $(OBJ_DIR)/wpcap.dll $(OBJS) $(LIBS) endef all: $(OBJ_DIR) $(TARGETS) $(TARGETS): $(OBJS) $(DEF_FILE) $(build_dll) .. --------------------------------- 1. Do I strictly need a .def-file? My understanding is that if I omit it, all non-static functions will be exported. If I have a .def-file only those specified will be exported. Is that correct? 2. How do I add version info to the .dll? If I add " VERSION 1.01234" to the .def-file, dllwrap prints "VERSION 1.668" (!?). I guess it's interpreting it as octal... Gisle V. # rm /bin/laden /bin/laden: Not found |