CompuServe Thread

#-md compiler toggle

3 messages in this thread
#115042From: Tom EshelmanJul 30, 1990 6:50 PM
Mike: I thought I should tell you of a slight problem. I did as you said and compiled getfile.c out of the 13 modules comprising Comm 1.34 with the -md switch. By thunder, while this takes care of the uprising of my linker and allows for slick makefiles, the program hangs when attempting up or downloads. So I compiled the whole shooting match with the -md toggle. The program allows no up or downloads. I take the same code, recompile without the -md, let the linker yell its head off, and all is fine. I can up and download with no trouble. No more -md switch for this duck! Regards Tom
#115129From: Mike Spille/ManxJul 31, 1990 12:17 AM
Um, just -md? In that case, what libraries are you linking with? We only provide small code/small data and large code/large data libraries – no small code/large data libraries. Such a random mixing of models will cause much strange havoc. Try compiling -mcd, and linking with the cl.lib library, and see what happens. -Mike
#115437From: Tom EshelmanAug 2, 1990 9:08 PM
Mike: Good thought. I linked with plain, vanilla, c.lib. I'll try your suggestion, and I bet you got it! I am not expert enough to immediately see what happens with many modules, pre-compiled headers, and all that jazz, but I will bet the farm there is nothing wrong with the code. I have some global variable in the pre-compiled file that *is* too far away. …..thanks to my forcing it to be that way. Leave it to me to make perfectly, good code inoperable. Yes. Snatch defeat from the very jaws of victory! 8-( Regards Tom