Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c - multiple definition of <function> -


/tmp/cctqfvcp.o: in function `whitespace': /home/tommo/fly/flyc/config.c:12: multiple definition of `whitespace' /tmp/cc0ccmfz.o:/home/tommo/fly/flyc/config.c:12: first defined here /tmp/cctqfvcp.o: in function `lineend': /home/tommo/fly/flyc/config.c:16: multiple definition of `lineend' /tmp/cc0ccmfz.o:/home/tommo/fly/flyc/config.c:16: first defined here /tmp/cctqfvcp.o: in function `makesubstr': /home/tommo/fly/flyc/config.c:20: multiple definition of `makesubstr' /tmp/cc0ccmfz.o:/home/tommo/fly/flyc/config.c:20: first defined here 

i'm getting every function in file config.c

every 1 of header files has #ifndef file_h header block thing.

why doing this?

target   = fly src      = main.c gfx.c transform.c entity.c list.c v3.c config.c airplane.c cppflags = -wall  ldflags  = -lglfw -lgl -lglu debug    = -g  linux:      @echo building linux...     gcc $(cppflags) $(debug) $(ldflags) $(src) -o $(target)     @echo done. clean:     rm $(target) help:     @echo "available targets fly"     @echo " linux: build linux (default)"     @echo " clean: clean directory"  .phony: clean 

that's makefile. git pull https://github.com/tm1rbrt/fly if wanna try build yourself

the problem this: main.c includes config.c. consequence, in config.c twice. it's unconventional c files include each other, recommend drop include.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -