1. Conflict arcsin arccos in misc.e and math.e
- Posted by Vinoba Mar 17, 2011
- 1280 views
misc.e has global functions with names arcsin arccos
std/math.e has these same functions as public function
If I include misc.e and also math.e before executing arcsin or arccos, the program does not like public function arcsin and arccos.
If I comment out these two global functions in misc.e, everything is fine.
2. Re: Conflict arcsin arccos in misc.e and math.e
- Posted by mattlewis (admin) Mar 17, 2011
- 1279 views
misc.e has global functions with names arcsin arccos
std/math.e has these same functions as public function
If I include misc.e and also math.e before executing arcsin or arccos, the program does not like public function arcsin and arccos.
If I comment out these two global functions in misc.e, everything is fine.
In general, don't use the files in the include directory. Those are the legacy 3.1 library. Use the include/std files. Or, if you absolutely must, use name spaces to qualify where required.
Matt
3. Re: Conflict arcsin arccos in misc.e and math.e
- Posted by Vinoba Mar 17, 2011
- 1288 views
OK. Thanks