07-15-2010 03:55 PM - edited 07-15-2010 04:08 PM
Hello All,
I have searched and searched but I can't seem to find the answer to my problem.
I am using eclipse classic 3.5 with the blackberry 1.1.2 plugin.
I am trying to only include code for jre 4.6 and up ( specifically the newly added MathUtilities stuff):
//#preprocess
...stuff
//#ifdef BlackBerrySDK4.5.0 | BlackBerrySDK4.3.0 | BlackBerrySDK4.2.1 | BlackBerrySDK4.2
/*
//#endif
import net.rim.device.api.util.MathUtilities;
//#ifdef BlackBerrySDK4.5.0 | BlackBerrySDK4.3.0 | BlackBerrySDK4.2.1 | BlackBerrySDK4.2
*/
//#endif
//#ifdef BlackBerrySDK4.5.0 | BlackBerrySDK4.3.0 | BlackBerrySDK4.2.1 | BlackBerrySDK4.2
/*
//#endif
public void functionThatRequires4.6() {
... function body
}
//#ifdef BlackBerrySDK4.5.0 | BlackBerrySDK4.3.0 | BlackBerrySDK4.2.1 | BlackBerrySDK4.2
*/
//#endif
Whenever I compile this on 4.6 or higher it makes a copy of the file in the .preprocessed directory, which causes a compile error because of wrong package name etc... Is there any way to either not generate this extra preprocessed file, or for it to exclude it from the build? Why is no one else getting this problem?
Thanks,
Chris.
Solved! Go to Solution.
07-16-2010 01:13 PM
Hmm, looks like I included the project folder in the source build path by accident, it seems to work fine now!
07-16-2010 03:07 PM
Please mark the thread as solved.
12-04-2010 11:06 PM
Can you let me know the exact steps in eclipse that you did to get rid of this error? Many Thanks.