Problem in building DLL :cannot find -luser32
I installed gcc 3.4.4 and bale to compile the sources properly using makefiles. Problem I am facing is with DLL. When I tried to build DLL it is giving eerror as /cygdrive/c/cygwin/bin/ld: cannot find -luser32 collect2: ld returned 1 exit status make: *** [prog] Error 1 I searched all the mailing lists and found the answer to re install W32app package. But I cross checked with my installed files and folders and found that "libuser32.a" exists. If I copy libs in w32api to C:\cygwin\lib, DLL build is completed sucessfully. But facing problem with simulator. DLL is not loading into simulator, Simulator got hanged. My simulator lies in different PC ( XP/ Intel processor ). But I am able to build exe and test it properly. My system configuration: OS : Microsoft Windows XP [Version 5.1.2600] Processor : AMD Athlon GCC : gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) GCC configuration : Reading specs from /cygdrive/c/cygwin/bin/../lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr -- sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --w ithout-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enabl e-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) Please help me in resolving this issue. Thanks in advance. nsp -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
REG : .dll build issue
Hi, I am working on gcc version 3.4.4. I successfully compiled all the source files and able to build .exe and .dll. I am able to debug the code properly using gdb/ddd. But while I tried to simulate the code, I am facing problems. It is not able to simulate. .dll is not even loading into simulator. What might be the problem. Here is the makefile.mk I am using, Makefile.mk #SHELL = /bin/sh VIEW_TAG = PLATFORM = 0 SECURITY_LEVEL_OVERRIDE_FLAG = 0 SIMPPC_TARGET_APP_FLAG = 0 MAKEFILE = Makefile.mk # Engine Model is replaced by mkmf.pl script ENG_MODEL = usersb_engctrl # Engine Model is used to build other symbols NAME_OIL = $(ENG_MODEL) NAME_SUBSYSTEM = $(ENG_MODEL)_bdm DLD_SUBSYSTEM = $(ENG_MODEL) DLD_SUBSYSTEM_LIB = ss_lib_$(PLATFORM) DLD_SUBSYSTEM_MEMMAP_TARGET = ss_memmap_ram_$(PLATFORM) DLD_SUBSYSTEM_MEMMAP_SIMPPC = ss_memmap_simppc_$(PLATFORM) NAME_HCONV_OPT = $(DLD_SUBSYSTEM) TUNE_DIR = ./ TUNE_DIR_CE = ./ TUNE_DIR_BE = ./ #--- # Object library macros. # Note that if PATH_LIB_OBJ isn't a relative path, then it will be required to # use the form: PATH_LIB_OBJ = $(VIEW_TAG)/desired_path PATH_LIB_OBJ = ../public # Object Name is replaced by mkmf.pl script based on existing library object file NAME_LIB_OBJ = mod_lib_a4 # Define: # - TARGET_MCU: Target Processor: PPC555 # - TARGET_OBJECT: Target object format: ELF # - TARGET_FP: Target floating point support: None # - TARGET_ENV: Target environment libraries: simple TARGET_MCU = PPC555 TARGET_OBJECT = E TARGET_FP = N TARGET_ENV = simple TARGET_OPTIONS = $(TARGET_MCU)$(TARGET_OBJECT)$(TARGET_FP):$(TARGET_ENV) #--- # Suffix rules: # Remove default suffixes. # Then, define custom suffixes. # .o = objects # .i = preprocessor output only # .c = C files # .s = asm files .SUFFIXES: .SUFFIXES: .o .c .s .pp .ss .c.o: @echo "Compiling $< ..." $(CC) $(CFLAGS) -c $< .s.o: @echo "Assembling $< ..." $(AS) $(AFLAGS) $< .c.pp: @echo "Running preprocessor only..." $(CC) -P $(CFLAGS) -C -o $@ $< .c.ss: @echo "Running assembly only..." $(CC) -S $(CFLAGS) -Xpass-source -o $@ $< #--- GCCPATH = "C:/cygwin/gcc" CC = $(GCCPATH)/bin/gcc AS = das AR = $(GCCPATH)/bin/ar LD = $(GCCPATH)/bin/ld DUMPER = ddump CFLAGS_OPTS = -D _DEBUG -D __WIN32__ -D __NUTC__ -D NDEBUG \ -D SECURITY_LEVEL_OVERRIDE_FLAG=$(SECURITY_LEVEL_OVERRIDE_FLAG) \ -D SIMPPC_TARGET_APP_FLAG=$(SIMPPC_TARGET_APP_FLAG) CFLAGS = \ -B$(GCCPATH)/bin/ -B$(GCCPATH) \ $(CFLAGS_OPTS) \ -g \ -I. \ -I/cygdrive/D/x./public \ AFLAGS = \ -g \ -t$(TARGET_OPTIONS) \ -I$(TUNE_DIR) ARFLAGS = -ru LDFLAGS = DEST = . EXTHDRS = HDRS = INSTALL = install ### Below file is to handle cotrol to simulator. OBJS = engctrl.o SRCS = engctrl.c #--- # Making executable prog: $(OBJS) $(MAKEFILE) $(CC) -o $(DLD_SUBSYSTEM).dll \ -fPIC \ -shared \ $(OBJS) \ /cygdrive/D/xxx/xxx../.a \ /cygdrive/D/xxx/xxx../.a #--- # make Objects only objects: $(OBJS) $(MAKEFILE) #--- # other targets #--- #--- # MACRO for preprocessor only. PPO = $(OBJS:.o=.pp) ppo: $(PPO) $(MAKEFILE) #--- # MACRO for assembly listings only. SSO = $(OBJS:.o=.ss) sso: $(SSO) $(MAKEFILE) touch:; @echo "Touching sources..." @touch $(SRCS) clean:; @echo "Removing all targets..." @rm *.o *.pp *.ss \ *.elf *.mot *.s19 clean_elf:; @echo "Removing *.elf targets..." @rm *.elf clean_mot:; @echo "Removing *.mot targets..." @rm *.mot clean_s19:; @echo "Removing *.s19 targets..." @rm *.s19 clean_obj:; @echo "Removing *.o targets..." @rm *.o clean_ppo:; @echo "Removing *.pp targets..." @rm *.pp clean_sso:; @echo "Removing *.ss targets..." @rm *.ss depend: @echo "Dependencies..." \ @echo $(HDRS) $(SRCS) index:; @ctags -wx $(HDRS) $(SRCS) print:; @$(PRINT) $(HDRS) $(SRCS) tags: $(HDRS) $(SRCS) @ctags $(HDRS) $(SRCS) Regards, Syam. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
gcc 3.2.2
Hi, I am facing with lot of issues with gcc 3.4.4 regarding .dll build. Where can i downlaod gcc 3.2.2 . I serached in all mirrop sites, but failed to find it. Please help me. Regards, syam. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
REG : Program received signal SIGSEGV, Segmentation fault
HI to ALL, I am working on HP system with XP OS.The problem is, while running a gdb debugger the following error occured. Program received signal SIGSEGV, Segmentation fault. 0x77c47631 in msvcrt!memset () Generally the previous errors of the same kind will display the source file and the location where it is occuring. But this is a specific issue with which i am facing trouble. Please help in this issue Thanks & Regards, Syam Prasad N -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/