X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2Ftutorial%2Flesson11.html;h=a495f6a6efe3a46efc12b718e6605184ceac6b42;hb=ad00e2badfa9ec079a632073e6693a01cba20fcf;hp=8b7f3649355ee931493abf8e77d26f53e74f50c7;hpb=988bc1065494d10822a2365408ac46f1dccc678b;p=tinyos-2.x.git diff --git a/doc/html/tutorial/lesson11.html b/doc/html/tutorial/lesson11.html index 8b7f3649..a495f6a6 100644 --- a/doc/html/tutorial/lesson11.html +++ b/doc/html/tutorial/lesson11.html @@ -1395,7 +1395,10 @@ Lesson  >
  • You have Python support installed, but it turns out to be incompatible with TOSSIM.
  • - + +
  • You have a variant of gcc/g++ installed that + expects slightly different compilation options than the + normal installation.
  • We'll visit each in turn.

    @@ -1552,10 +1555,10 @@ CFLAGS += -I/path

    Symptom: You've verified that you have the needed Python files and libraries, but compilation is still saying that it can't link to them ("undefined - reference") or can't find them.

    + reference") or can't find them ("cannot find -lpython2.4").

    Solution: Change the sim.extra file to point to - the correct directories.

    + the correct directories using -L and -I flags.

    You have Python support installed, but it turns out to be incompatible with TOSSIM.

    @@ -1568,7 +1571,21 @@ CFLAGS += -I/path tos/lib/tossim, or install a different version of Python.

    -

    Hopefully, these solutions worked and you can get back +

    You have a variant of gcc/g++ installed that + expects slightly different compilation options than the + normal installation.

    + +

    Symptom: g++ complains that it cannot find + main() when you are compiling the shared library + ("undefined reference to `_WinMain@16'").

    + +

    Solution: There are two possible solutions. + The first is to include a dummy main(), as described + in this tinyos-help posting. The + second is to add the -shared option, as described in + this web page. + +

    Hopefully, these solutions worked and you can get back to compiling, If not, then you should email tinyos-help.