diff --git a/setup.py b/setup.py
index 2ccc9c77bb517b7c60ed2b84517ab018549dd0fe..e39c81b1e9e7fb991d78e95ac040a3cb7edb531e 100644
--- a/setup.py
+++ b/setup.py
@@ -187,6 +187,9 @@ class CompileLibCommand(distutils.cmd.Command):
         if not os.path.isdir('obj'):
             os.makedirs('obj')
             need_to_compile = True
+        if not os.path.isdir('obj/full_code'):
+            os.makedirs('obj/full_code')
+            need_to_compile = True
         if not os.path.isfile('bfps/libbfps.a'):
             need_to_compile = True
         else: