{"action":"created","issue":{"url":"https://api.github.com/repos/genn-team/genn/issues/116","repository_url":"https://api.github.com/repos/genn-team/genn","labels_url":"https://api.github.com/repos/genn-team/genn/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/genn-team/genn/issues/116/comments","events_url":"https://api.github.com/repos/genn-team/genn/issues/116/events","html_url":"https://github.com/genn-team/genn/issues/116","id":194621018,"number":116,"title":"How to deal with makefile?","user":{"login":"spinang","id":11614831,"avatar_url":"https://avatars.githubusercontent.com/u/11614831?v=3","gravatar_id":"","url":"https://api.github.com/users/spinang","html_url":"https://github.com/spinang","followers_url":"https://api.github.com/users/spinang/followers","following_url":"https://api.github.com/users/spinang/following{/other_user}","gists_url":"https://api.github.com/users/spinang/gists{/gist_id}","starred_url":"https://api.github.com/users/spinang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinang/subscriptions","organizations_url":"https://api.github.com/users/spinang/orgs","repos_url":"https://api.github.com/users/spinang/repos","events_url":"https://api.github.com/users/spinang/events{/privacy}","received_events_url":"https://api.github.com/users/spinang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-09T15:18:35Z","updated_at":"2016-12-12T15:59:40Z","closed_at":null,"body":"I'm sorry to repeat again my question, but I would like to know if I'm going in the right way.\r\nI'm trying to include some .h and .c files in order to make communicating my application with a V-REP scene; is this `makefile_common_win.mk`\r\n```\r\n##--------------------------------------------------------------------------\r\n##   Author: Thomas Nowotny\r\n##\r\n##   Institute: Center for Computational Neuroscience and Robotics\r\n##              University of Sussex\r\n##            \tFalmer, Brighton BN1 9QJ, UK\r\n##\r\n##   email to:  T.Nowotny@sussex.ac.uk\r\n##\r\n##   initial version: 2010-02-07\r\n##\r\n##--------------------------------------------------------------------------\r\n\r\n\r\n# Makefile include for all GeNN projects\r\n# This is a Windows Makefile, to be used by the MS nmake build system\r\n#--------------------------------------------------------------------\r\n\r\n# Global C++ and CUDA compiler settings.\r\nNVCC\t\t= \"$(CUDA_PATH)\\bin\\nvcc.exe\"\r\nNVCCFLAGS\t= $(NVCCFLAGS) -g -G\r\nCXXFLAGS\t= $(CXXFLAGS) /nologo /EHsc /Zi\r\n\r\n\r\n# Global include flags and link flags.\r\nINCLUDE_FLAGS\t= /I\"$(CUDA_PATH)\\include\" /I\"$(CUDA_PATH)\\samples\\common\\inc\" /I\"$(GENN_PATH)\\lib\\include\" /I\"$(GENN_PATH)\\userproject\\include\"  /I\"$(GENN_PATH)\\userproject\\VREP\\remoteApi\" $(EXTRA_INCLUDE)\r\n!IF \"$(PROCESSOR_ARCHITECTURE)\" == \"AMD64\"\r\nLINK_FLAGS\t=\"$(CUDA_PATH)\\lib\\x64\\cudart.lib\"\r\n!ELSEIF \"$(PROCESSOR_ARCHITEW6432)\" == \"AMD64\"\r\nLINK_FLAGS\t=\"$(CUDA_PATH)\\lib\\x64\\cudart.lib\"\r\n!ELSE\r\nLINK_FLAGS\t=\"$(CUDA_PATH)\\lib\\Win32\\cudart.lib\"\r\n!ENDIF\r\n\r\n# An auto-generated file containing your cuda device's compute capability.\r\n!INCLUDE sm_version.mk\r\n\r\n# Infer object file names from source file names.\r\nOBJECTS\t\t=$(SOURCES:.cc=.obj)\r\nOBJECTS\t\t=$(OBJECTS:.cpp=.obj)\r\nOBJECTS\t\t=$(OBJECTS:.cu=.obj)\r\nOBJECTS     =$(OBJECTS:.c=.obj)\r\n\r\n# Target rules.\r\n.SUFFIXES: .cu\r\n\r\nall: $(EXECUTABLE)\r\n\r\n.cc.obj:\r\n\t$(CXX) $(CXXFLAGS) $(INCLUDE_FLAGS) $< /Fo$@ /c\r\n\r\n.cpp.obj:\r\n\t$(CXX) $(CXXFLAGS) $(INCLUDE_FLAGS) $< /Fo$@ /c\r\n\r\n.cu.obj:\r\n\t$(NVCC) $(NVCCFLAGS) $(INCLUDE_FLAGS:/I=-I) $(GENCODE_FLAGS) $< /Fo$@ -c\r\n\t\r\n.c.obj:\r\n\t$(CXX) $(CXXFLAGS) $(INCLUDE_FLAGS) $< /Fo$@ /c\r\n\r\n$(EXECUTABLE): $(OBJECTS)\r\n\t$(CXX) $(CXXFLAGS) $(LINK_FLAGS) $(OBJECTS) /Fe$@\r\n\r\nclean:\r\n\t-del $(EXECUTABLE) *.obj *.ilk *.pdb 2>nul\r\n\r\npurge: clean\r\n\t-del sm_version.mk 2>nul\r\n\t-rd /s /q *_CODE 2>nul\r\n\r\n```\r\nright? I added a new OBJECTS entry for .c files (my library comprises some .c files) and I copied the rule used for both .cc.obj and .cpp.obj also for .c.obj. Moreover, I added `/I\"$(GENN_PATH)\\userproject\\VREP\\remoteApi\"` and I include .h files in my .cu program, but I still can't compile the project. Someone suggested me to change .c files in .cpp files and to include them within the WINmakefile file (SOURCES), but I tried unsuccessfully."},"comment":{"url":"https://api.github.com/repos/genn-team/genn/issues/comments/266468759","html_url":"https://github.com/genn-team/genn/issues/116#issuecomment-266468759","issue_url":"https://api.github.com/repos/genn-team/genn/issues/116","id":266468759,"user":{"login":"jamesturner246","id":6853046,"avatar_url":"https://avatars.githubusercontent.com/u/6853046?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesturner246","html_url":"https://github.com/jamesturner246","followers_url":"https://api.github.com/users/jamesturner246/followers","following_url":"https://api.github.com/users/jamesturner246/following{/other_user}","gists_url":"https://api.github.com/users/jamesturner246/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesturner246/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesturner246/subscriptions","organizations_url":"https://api.github.com/users/jamesturner246/orgs","repos_url":"https://api.github.com/users/jamesturner246/repos","events_url":"https://api.github.com/users/jamesturner246/events{/privacy}","received_events_url":"https://api.github.com/users/jamesturner246/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T15:59:40Z","updated_at":"2016-12-12T15:59:40Z","body":"Please post the errors you get."}}
{"actor":{"display_login":"jamesturner246"}}