undefined symbol in preprocessor in mixed C/Asm build
Hi,
I am trying to understand MPlayer, and am currently rebuilding some of its source code which includes C and asm files. Most of the preprocessor symbols are defined in the config.h file, created by the configure script. In the C files, these symbols are visible in the source by including the config.h header file. However, in the asm files, I don't see any of such inclusion. Since the asm files also use these preprocessor symbols (e.g. ARCH_X86_64), how are they made visible during the build of the asm files? When I try building the asm source myself, I get many errors such as: undefined symbol `ARCH_X86_64' in preprocessor I was wondering how this is to be done, or if someone knows specifically how this is done in the Mplayer build ? Again, many thanks for any help you can provide! PD. |
Hi,
It seems my previous message was not posted. After looking a little bit harder... I found that there is indeed a config.asm file with all the symbol definitions of config.h. This, in addition to the -Pconfig.asm options provided to yasm is all that is required it seems. Sorry for posting my question a little bit too soon. Cheers. PD. |
All times are GMT -5. The time now is 12:15 PM. |