|
From: rodolfo d'E. <rod...@ho...> - 2006-10-03 23:32:33
|
Hi, I included #include <winsock.h> to dcraw.c and in project options > parameters > linker I added -wsock32. Also I added -DNO_JPEG and -DNO_LCMS project optiobs > parameters > compiler and it compiled. Saludos Rodolfo d'Ettorre >From: "IraqiGeek" <ge...@Ir...> >To: <dev...@li...> >Subject: [Dev-C++] can't compile dcraw.c >Date: Tue, 3 Oct 2006 10:40:11 +0100 > >Hi all, > >I'm trying to compile David Coffin's infamous dcraw.c (a raw camera >converter that supports most cameras out there) mostly so I could trace his >code to see how he's reading the various raw file formats. However, I can't >seem to be able to convince dev-cpp 4.9.9.2 to do that. > >I am passing -DNO_JPEG and -DNO_LCMS to the compiler, which got me to build >dcraw.c on djgpp (with rhide). > >When compiling on dev-cpp with the above parameters, initially it objects >on >a #include<netinet/in.h>, and after I comment that, it objects saying its >detecting recursion while expanding a macro within dcraw.c, namely sget4. >It >also says that its detecting recursion on expanding macro image, but as far >as I can tell, image is a global vector variable. > >So, if dev-cpp and djgpp are both based on gcc, why is dcraw.c compiling >under one and refusing to compile under the other? > >dcraw.c can be downloaded from David Coffin's page at: >http://cybercom.net/~dcoffin/dcraw/ > >Any help would be greatly appretiated. > > >Regards, >IraqiGeek >www.iraqigeek.com > > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys -- and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |