X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR Newsgroups: comp.os.msdos.djgpp Subject: Re: _rdtsc(void) inline function in time.h - cause problem with multiple definition during linking Date: Wed, 26 Oct 2011 05:40:09 -0700 (PDT) Organization: http://groups.google.com Lines: 30 Message-ID: References: <4ce51722-c2fd-4fe0-8cb9-ebae498c3271 AT r1g2000yqm DOT googlegroups DOT com> <83k47tc9u2 DOT fsf AT gnu DOT org> <65da0e3d-29ea-46ae-b23d-ae08652594aa AT a17g2000yqj DOT googlegroups DOT com> <0a80c084-8135-4c4d-a25c-b56f3eb41e36 AT y36g2000yqm DOT googlegroups DOT com> NNTP-Posting-Host: 90.181.199.10 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1319632809 28368 127.0.0.1 (26 Oct 2011 12:40:09 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Wed, 26 Oct 2011 12:40:09 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: r28g2000yqj.googlegroups.com; posting-host=90.181.199.10; posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14,gzip(gfe) Bytes: 2671 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I removed the source of error but i tried to simulate it by including time.h in 2 modules. The error looked like this: gcc -o x264.exe x264.o input/input.o input/timecode.o input/raw.o input/y4m.o ou tput/raw.o output/matroska.o output/matroske.o output/flv.o output/ flv_byte.o fi lters/filters.o filters/video/video.o filters/video/source.o filters/ video/inter nal.o filters/video/resize.o filters/video/cache.o filters/video/ fix_vfr_.o filt ers/video/select_e.o filters/video/crop.o filters/video/depth.o extras/ getopt.o libx264.a -lm libx264.a(macroblo.o):macroblo.c:(.text+0xaf0): multiple definition of `__rdtsc' x264.o:x264.c:(.text+0x7130): first defined here collect2: ld returned 1 exit status make.exe: *** [x264.exe] Error 1 But yeah, thanks to Ozkan Sezer when I tried to rebuild this test case with new djdev 2.04 package the error disappeared - thanks! BTW why not to upload this package to /beta or /alpha on DJ's site? There seems to be some development of djdev but it may be hidden to other users. BTW Ozkan, you're author of new Hexen engine? Good work!