{"action":"created","issue":{"url":"https://api.github.com/repos/SebWouters/CheMPS2/issues/17","labels_url":"https://api.github.com/repos/SebWouters/CheMPS2/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/SebWouters/CheMPS2/issues/17/comments","events_url":"https://api.github.com/repos/SebWouters/CheMPS2/issues/17/events","html_url":"https://github.com/SebWouters/CheMPS2/issues/17","id":102157471,"number":17,"title":"Undefined reference to 'XXX', such as`CheMPS2::Initialize::Init()' while compling test1.cpp","user":{"login":"dingld","id":13599107,"avatar_url":"https://avatars.githubusercontent.com/u/13599107?v=3","gravatar_id":"","url":"https://api.github.com/users/dingld","html_url":"https://github.com/dingld","followers_url":"https://api.github.com/users/dingld/followers","following_url":"https://api.github.com/users/dingld/following{/other_user}","gists_url":"https://api.github.com/users/dingld/gists{/gist_id}","starred_url":"https://api.github.com/users/dingld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dingld/subscriptions","organizations_url":"https://api.github.com/users/dingld/orgs","repos_url":"https://api.github.com/users/dingld/repos","events_url":"https://api.github.com/users/dingld/events{/privacy}","received_events_url":"https://api.github.com/users/dingld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T14:51:31Z","updated_at":"2015-08-21T02:18:18Z","closed_at":null,"body":"I succeeded in installing Chemps2 as guided, and \"make test\" actually went well. But thins went wrong when I complile test1.cpp using icpc. ( the same issue using g++) \r\n![2015-08-20 22 43 55](https://cloud.githubusercontent.com/assets/13599107/9386393/e238be6a-478d-11e5-9a63-31e312d0408c.png)\r\n![2015-08-20 22 29 40](https://cloud.githubusercontent.com/assets/13599107/9386405/e84a5610-478d-11e5-8917-6fc7b7935340.png)\r\n"},"comment":{"url":"https://api.github.com/repos/SebWouters/CheMPS2/issues/comments/133247239","html_url":"https://github.com/SebWouters/CheMPS2/issues/17#issuecomment-133247239","issue_url":"https://api.github.com/repos/SebWouters/CheMPS2/issues/17","id":133247239,"user":{"login":"SebWouters","id":598951,"avatar_url":"https://avatars.githubusercontent.com/u/598951?v=3","gravatar_id":"","url":"https://api.github.com/users/SebWouters","html_url":"https://github.com/SebWouters","followers_url":"https://api.github.com/users/SebWouters/followers","following_url":"https://api.github.com/users/SebWouters/following{/other_user}","gists_url":"https://api.github.com/users/SebWouters/gists{/gist_id}","starred_url":"https://api.github.com/users/SebWouters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SebWouters/subscriptions","organizations_url":"https://api.github.com/users/SebWouters/orgs","repos_url":"https://api.github.com/users/SebWouters/repos","events_url":"https://api.github.com/users/SebWouters/events{/privacy}","received_events_url":"https://api.github.com/users/SebWouters/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T02:18:18Z","updated_at":"2015-08-21T02:18:18Z","body":"Hi,\r\n\r\nSo if you have installed with\r\n\r\n    make install\r\n\r\nyou either need to specify the headers in your file.ccp as\r\n\r\n    #include \"chemps2/theheader.h\"\r\n\r\ninstead of\r\n\r\n    #include \"theheader.h\",\r\n\r\nor compile with the full header path by passing it to the compiler:\r\n\r\n    icpc -g -O3 -openmp -xHost -ipo -fPIC -I/usr/include/chemps2 -o file.o -c file.cpp\r\n    icpc -g -O3 -openmp -xHost -ipo file.o -o mybin -L/usr/lib/x86_64-linux-gnu -lchemps2\r\n\r\nCan you try with the exact same order of commands as in the two lines above?\r\n\r\nBest wishes,\r\nSebastian\r\n"}}